We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fetch failed
1 parent 3f3ff11 commit 6e2455aCopy full SHA for 6e2455a
src/_utils.ts
@@ -90,6 +90,8 @@ export async function sendFetch(
90
const res = await fetch(url, {
91
...options,
92
headers: normalizeHeaders(options.headers),
93
+ }).catch((error: any) => {
94
+ throw new Error(`Failed to download ${url}: ${error}`);
95
});
96
97
if (options.validateStatus && res.status >= 400) {
0 commit comments