From 707f6597b51af699a6924d22c9cc1c4c2353e19d Mon Sep 17 00:00:00 2001 From: Chris Payne Date: Tue, 8 Jul 2025 21:38:23 -0400 Subject: [PATCH] One last? --- tools/pax8.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pax8.ps1 b/tools/pax8.ps1 index 930b7da..4cb1360 100644 --- a/tools/pax8.ps1 +++ b/tools/pax8.ps1 @@ -80,7 +80,7 @@ function Invoke-Pax8Provision { Write-Host "[PAX8] Company provisioned successfully: $($response.id)" } catch { if ($_.Exception.Response -and $_.Exception.Response.StatusCode.Value__ -eq 422) { - Write-Host "[PAX8] A company with this information already exists." + throw "[PAX8] A company with this information already exists." } else { throw "[PAX8] Company creation failed: $($_.Exception.Message)" }