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 83cae1d commit de4f614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/donwload-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function downloadUrl(url: string, path: string) {

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

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

0 comments on commit de4f614

Please sign in to comment.