Skip to content

Commit

Permalink
fix download
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Apr 10, 2020
1 parent 3b6500d commit 83cae1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/misc/donwload-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function downloadUrl(url: string, path: string) {

if (!response.ok) {
logger.error(`Got ${response.status} (${url})`);
throw `${response.status}`;
}

await pipeline(response.body, fs.createWriteStream(path));
Expand Down

0 comments on commit 83cae1d

Please sign in to comment.