Check result from build script

This commit is contained in:
Steve Streeting 2020-05-15 11:38:03 +01:00
parent 42b1ef5eea
commit 3863f85003

View File

@ -72,6 +72,10 @@ try {
# Use Invoke-Expression so we can use a string as options # Use Invoke-Expression so we can use a string as options
Invoke-Expression "&'$PSScriptRoot/ue4-build.ps1' dev $args" Invoke-Expression "&'$PSScriptRoot/ue4-build.ps1' dev $args"
if ($LASTEXITCODE -ne 0) {
throw "Build process failed, see above"
}
Write-Output "-- Get Latest finished OK --" Write-Output "-- Get Latest finished OK --"