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
  • Loading branch information
aslushnikov committed Apr 10, 2020
1 parent d0c19e5 commit e8eb0d4
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 = 17;
throw e;
});
logPolitely(`${options.progressBarBrowserName} downloaded to ${options.downloadPath}`);
}

Expand Down

0 comments on commit e8eb0d4

Please sign in to comment.