From 3863f850030e3eda2819d994cb59b42121de09cc Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Fri, 15 May 2020 11:38:03 +0100 Subject: [PATCH] Check result from build script --- ue4-get-latest.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ue4-get-latest.ps1 b/ue4-get-latest.ps1 index c4f1ad0..b1f481b 100644 --- a/ue4-get-latest.ps1 +++ b/ue4-get-latest.ps1 @@ -72,6 +72,10 @@ try { # Use Invoke-Expression so we can use a string as options Invoke-Expression "&'$PSScriptRoot/ue4-build.ps1' dev $args" + if ($LASTEXITCODE -ne 0) { + throw "Build process failed, see above" + } + Write-Output "-- Get Latest finished OK --"