Skip to content

Commit a0786d4

Browse files
authored
Fix build failure detection [skip ci]
1 parent d622b01 commit a0786d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ foreach ($src in ls src/*) {
2929
} else {
3030
& dotnet pack -c Release -o ..\..\artifacts --no-build
3131
}
32-
if($LASTEXITCODE -ne 0) { exit 1 }
32+
if($LASTEXITCODE -ne 0) { throw "build failed" }
3333

3434
Pop-Location
3535
}
@@ -40,7 +40,7 @@ foreach ($test in ls test/*.Tests) {
4040
echo "build: Testing project in $test"
4141

4242
& dotnet test -c Release
43-
if($LASTEXITCODE -ne 0) { exit 3 }
43+
if($LASTEXITCODE -ne 0) { throw "tests failed" }
4444

4545
Pop-Location
4646
}

0 commit comments

Comments
 (0)