Throw build_windows.ps1 if npm run build fails (#474)

* Try-Catch in powershell, intentionally break npm to test

* Try If $LastExitCode Throw instead

* Clean up error msg, remove known bug
This commit is contained in:
Gene Hoffman 2020-10-16 16:18:05 -07:00 committed by GitHub
parent 7df1f9a265
commit de5f646ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,9 @@ Write-Output " ---"
Write-Output "Electron package Windows Installer"
Write-Output " ---"
npm run build
If ($LastExitCode -gt 0){
Throw "npm run build failed!"
}
Write-Output " ---"
Write-Output "Increase the stack for chia command for (chia plots create) chiapos limitations"