From e7243efce274436a9544290048fe9d6823662115 Mon Sep 17 00:00:00 2001 From: Martin Kemp Date: Fri, 15 Jan 2016 12:28:24 +0000 Subject: [PATCH] Fix build script not exiting on msbuild failure. --- scripts/build.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 998c442..473cfbe 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -105,6 +105,9 @@ Pop-Location if($Compile) { Push-Location -Path $launcher msbuild CmderLauncher.vcxproj /p:configuration=Release + if ($LastExitCode -ne 0) { + throw "msbuild failed to build the executable." + } Pop-Location } else { Write-Warning "You are not building a launcher, Use -Compile"