diff --git a/script/vsts/windows-run.js b/script/vsts/windows-run.js index 4d39ab74a..c01edbc64 100644 --- a/script/vsts/windows-run.js +++ b/script/vsts/windows-run.js @@ -39,5 +39,8 @@ async function runScriptForBuildArch () { } runScriptForBuildArch().catch( - err => console.error(`\nScript failed due to error: ${err.message}`) + err => { + console.error(`\nScript failed due to error: ${err.message}`) + process.exit(1) + } )