Skip to content

Commit

Permalink
Try debug build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincessMadMath committed Dec 17, 2024
1 parent dcf606e commit 279e361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 279e361

Please sign in to comment.