fix test
This commit is contained in:
parent
c8b2ce08c1
commit
6fb53553e7
|
|
@ -117,7 +117,12 @@ async function main(options: DownloadParams) {
|
|||
const extraction = pipeline(
|
||||
decompress,
|
||||
tar.extract(options.browserDirectory),
|
||||
);
|
||||
).catch(e => {
|
||||
if (e.code === 'ERR_STREAM_PREMATURE_CLOSE') // caused by an upstream error in `downloadFile()`, let's no throw twice
|
||||
return;
|
||||
|
||||
throw e;
|
||||
});
|
||||
await Promise.all([
|
||||
extraction,
|
||||
downloadFile(options, decompress)
|
||||
|
|
|
|||
Loading…
Reference in a new issue