Skip to content

Commit

Permalink
chore(utils): add better error message on fetch failure
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed May 1, 2023
1 parent c29289f commit 7ebacaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function downloadToFile(
});
if (response.status < 200 || response.status > 299) {
throw new Error(
`Download failed with response status code ${response.status}`
`Download of '${url}' failed with response status code ${response.status}`
);
}
const writer = createWriteStream(file, { mode });
Expand Down

0 comments on commit 7ebacaa

Please sign in to comment.