We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b724006 commit bb99429Copy full SHA for bb99429
packages/installer/util.ts
@@ -146,7 +146,13 @@ export class DefaultDownloader implements Downloader {
146
await pipeline(this.openDownloadStream(option.url, option), createWriteStream(option.destination));
147
return;
148
}
149
- let chain = option.url.map((u) => () => pipeline(this.openDownloadStream(u, option), createWriteStream(option.destination)));
+ let chain = option.url.map((u) => () => {
150
+ try {
151
+ return pipeline(this.openDownloadStream(u, option), createWriteStream(option.destination))
152
+ } catch (e) {
153
+ return Promise.reject(e);
154
+ }
155
+ });
156
let promise = chain.shift()!();
157
while (chain.length > 0) {
158
const next = chain.shift();
0 commit comments