Skip to content

Commit

Permalink
fix: set non-0 exit code for install scripts if there are problems (#…
Browse files Browse the repository at this point in the history
…1739)

Fixes #1731
  • Loading branch information
aslushnikov authored Apr 15, 2020
1 parent 9efc663 commit 8c40b92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion download-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ async function downloadBrowserWithProgressBar(options) {
lastDownloadedBytes = downloadedBytes;
progressBar.tick(delta);
}
await browserFetcher.downloadBrowser({...options, progress});
await browserFetcher.downloadBrowser({...options, progress}).catch(e => {
process.exitCode = 1;
throw e;
});
logPolitely(`${options.progressBarBrowserName} downloaded to ${options.downloadPath}`);
}

Expand Down

0 comments on commit 8c40b92

Please sign in to comment.