diff --git a/scripts/ci/prep.win.ps1 b/scripts/ci/prep.win.ps1 index eb787b4af..8d086fccd 100644 --- a/scripts/ci/prep.win.ps1 +++ b/scripts/ci/prep.win.ps1 @@ -25,4 +25,9 @@ if ($ARCH -eq 5) { Write-Host "Detected x86_64 architecture" mc cp R2/sling/bin/sling_prep/sling_prep_windows_amd64.exe . .\sling_prep_windows_amd64.exe -} \ No newline at end of file +} + +if ($LASTEXITCODE -ne 0) { + Write-Host "Error: Last command exited with non-zero status code: $LASTEXITCODE" + exit 1 +}