summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2023-05-01 07:51:51 -0700
committerGitHub <noreply@github.com>2023-05-01 07:51:51 -0700
commitb7eb3f0168025a81432b0b4f975372daac19de65 (patch)
treeac2ee78774eca31948f64efeaa5503bb004d424c
parent74f294caf18c61547ddee5a053672942c2b8c401 (diff)
parent987c7043e3bae18be9930b45581e9b688be71b9b (diff)
downloadchef-b7eb3f0168025a81432b0b4f975372daac19de65.tar.gz
Merge pull request #13725 from chef/jfm/chef17_omnibus_exit_code
[chef-17] 17 of X - Correcting Omnibus test error handling
-rw-r--r--omnibus/omnibus-test.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1
index 71af497dd1..3b7c99c434 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -122,4 +122,4 @@ If ($lastexitcode -ne 0) { $exit = 1 }
Write-Output "Last exit code: $lastexitcode"
Write-Output ""
-Throw $exit
+If ($exit -ne 0) { Throw $exit }