diff --git a/ue4-package.ps1 b/ue4-package.ps1 index 7b6abfa..2241086 100644 --- a/ue4-package.ps1 +++ b/ue4-package.ps1 @@ -218,9 +218,11 @@ try { Write-Output "Would have run:" Write-Output "> $runUAT $($argList -join " ")" - - - } else { + } else { + $proc = Start-Process $runUAT $argList -Wait -PassThru -NoNewWindow + if ($proc.ExitCode -ne 0) { + throw "RunUAT failed!" + } } }