diff --git a/src/_utils.ts b/src/_utils.ts index 40d1cdc..6ce3c05 100644 --- a/src/_utils.ts +++ b/src/_utils.ts @@ -90,6 +90,8 @@ export async function sendFetch( const res = await fetch(url, { ...options, headers: normalizeHeaders(options.headers), + }).catch((error: any) => { + throw new Error(`Failed to download ${url}: ${error}`); }); if (options.validateStatus && res.status >= 400) {