diff --git a/build.ps1 b/build.ps1 index c1999ee..d23f029 100644 --- a/build.ps1 +++ b/build.ps1 @@ -6,7 +6,12 @@ function runCommand { ) Write-Host $command - Invoke-Expression $command + $command += ';$LASTEXITCODE' + $result = Invoke-Expression $command + if ($result -ne 0) { + Write-Host "Command failed (exit: $result)" + Exit $result + } } function cleanProject {