We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe860b commit ac76160Copy full SHA for ac76160
scripts/Invoke-CodeGen.ps1
@@ -32,7 +32,12 @@ function Invoke-ScriptWithLogging {
32
$scriptString = $Script | Out-String
33
Write-Host "--------------------------------------------------------------------------------`n> $scriptString"
34
& $Script
35
+ $exitCode = $LASTEXITCODE
36
Write-Host ""
37
+
38
+ if ($exitCode -ne 0) {
39
+ throw "Command failed with exit code $exitCode"
40
+ }
41
}
42
43
0 commit comments