Skip to content

Commit

Permalink
Fixing the build to report failures correctly (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
soninaren committed Jan 3, 2019
1 parent 8bb1e2a commit 27bbd58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 27bbd58

Please sign in to comment.