From edcc8e2c364b2030e4f542faf05b4d36220083e9 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Thu, 25 Jan 2018 14:57:53 -0800 Subject: [PATCH] [bootstrap] Exit fast(er) if msbuild fails --- scripts/bootstrap.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index a50d0dde11..3e886b26a6 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -56,9 +56,9 @@ try "dirs.proj") -join " " # vcpkgInvokeCommandClean cmd "/c echo %PATH%" - vcpkgInvokeCommandClean $msbuildExe $arguments + $ec = vcpkgInvokeCommandClean $msbuildExe $arguments - if ($LASTEXITCODE -ne 0) + if ($ec -ne 0) { Write-Error "Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++." return