diff --git a/build.psm1 b/build.psm1 index 7e0940776bf..80424229aec 100644 --- a/build.psm1 +++ b/build.psm1 @@ -2076,12 +2076,6 @@ function script:Start-NativeExecution $callerLine = $callerLocationParts[1] $errorMessage = "Execution of {$sb} by ${callerFile}: line $callerLine failed with exit code $LASTEXITCODE" - - if ($null -ne $env:CI) - { - Add-AppveyorCompilationMessage $errorMessage -Category Error -FileName $callerFile -Line $callerLine - } - throw $errorMessage } throw "Execution of {$sb} failed with exit code $LASTEXITCODE"