From 3c8b00625f069aa46acd5ecce63b469c9d386c85 Mon Sep 17 00:00:00 2001 From: coloursofnoise <53288101+coloursofnoise@users.noreply.github.com> Date: Sun, 3 Oct 2021 11:19:44 -0700 Subject: [PATCH] Fix patch verify error logging --- azure-pipelines-verify.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-verify.ps1 b/azure-pipelines-verify.ps1 index 5b5f30184..775832bd0 100644 --- a/azure-pipelines-verify.ps1 +++ b/azure-pipelines-verify.ps1 @@ -33,5 +33,7 @@ Copy-Item -Path "$env:VANILLA_CACHE/*" -Destination $PATCH Write-Output "Applying Everest patch" Copy-Item -Path "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/main/*" -Destination $PATCH $MINIINSTALLER = Start-Process -FilePath "mono" -ArgumentList "$PATCH/MiniInstaller.exe" -WorkingDirectory $PATCH -Wait -PassThru -Write-Output "##vso[task.logissue type=error]Patch verification step failed." +if ($MINIINSTALLER.ExitCode -ne 0) { + Write-Output "##vso[task.logissue type=error]Patch verification step failed." +} Exit $MINIINSTALLER.ExitCode