mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: set non-0 exit code for install scripts if there are problems (#1739)
Fixes #1731
This commit is contained in:
parent
9efc66366c
commit
8c40b920c9
@ -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}`);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user