Skip to content

Commit

Permalink
Add exit code info to error
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops committed Apr 14, 2023
1 parent f982fef commit 9f70c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download_dependencies.ps1
Expand Up @@ -44,13 +44,13 @@ cmake -S . -B build && cmake --build build && cmake --install build
#cmake -DCMAKE_BUILD_TYPE=Release -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DBUILD_SHARED_LIBS=ON ..

if ($LastExitCode -ne 0) {
throw 'SDL compilation setup failed'
throw 'SDL compilation setup failed: ' + $LastExitCode
}

make -j

if ($LastExitCode -ne 0) {
throw 'SDL compilation failed'
throw 'SDL compilation failed: ' + $LastExitCode
}

popd

0 comments on commit 9f70c78

Please sign in to comment.