diff --git a/Build.ps1 b/Build.ps1 index feb9cc6..ebd52e8 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -7,6 +7,8 @@ Begin { Process { function Exec([scriptblock]$Command) { & $Command + $exitCode = $LASTEXITCODE + Write-Output ("Command executed with exit code: {0}" -f $exitCode) if ($LASTEXITCODE -ne 0) { throw ("An error occurred while executing command: {0}" -f $Command) }