From 2bbc91a3a8237309c89d3f1140dc42ef6087e1dc Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 18 Sep 2018 09:30:36 -0700 Subject: [PATCH] Return a non-zero error code when windows-run.js CI script fails on VSTS --- script/vsts/windows-run.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) + } )