mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-30 04:07:53 +00:00
Merge pull request #20857 from cevich/windows_fail_properly
Fix command failure not resulting in task failure
This commit is contained in:
commit
4ec76eca35
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ function Check-Exit {
|
|||
# https://learn.microsoft.com/en-us/dotnet/api/system.management.automation.callstackframe
|
||||
$caller = (Get-PSCallStack)[1]
|
||||
Write-Host "Exit code = '$result' from $($caller.ScriptName):$($caller.ScriptLineNumber)"
|
||||
Exit $result
|
||||
Throw "Non-zero exit code"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue