Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 7ebacaa

Browse files
committed
chore(utils): add better error message on fetch failure
1 parent c29289f commit 7ebacaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function downloadToFile(
5151
});
5252
if (response.status < 200 || response.status > 299) {
5353
throw new Error(
54-
`Download failed with response status code ${response.status}`
54+
`Download of '${url}' failed with response status code ${response.status}`
5555
);
5656
}
5757
const writer = createWriteStream(file, { mode });

0 commit comments

Comments
 (0)