From 27bbd582caaacd8d1e2520e5d31ee1bb8c16c220 Mon Sep 17 00:00:00 2001 From: Naren Soni Date: Wed, 2 Jan 2019 16:05:39 -0800 Subject: [PATCH] Fixing the build to report failures correctly (#54) --- build.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.ps1 b/build.ps1 index 767f4b31..db13537d 100644 --- a/build.ps1 +++ b/build.ps1 @@ -10,11 +10,10 @@ function LogSuccess() { function LogErrorAndExit($errorMessage, $exception) { Write-Host -ForegroundColor Red "...Failed" - Write-Host $errorMessage -ForegroundColor Red if ($exception -ne $null) { Write-Host $exception -ForegroundColor Red | format-list -force - } - Exit + } + throw $errorMessage } Function validateFeedJson()