Fix types

This commit is contained in:
SukkaW
2024-10-09 21:10:25 +08:00
parent 3e7ef5a294
commit 99e5d46531
3 changed files with 13 additions and 11 deletions

View File

@@ -107,7 +107,9 @@ function createFetchRetry($fetch: typeof fetch): FetchWithRetry {
}
console.log(picocolors.gray('[fetch fail]'), url, err);
throw err;
const newErr = new Error('Fetch failed');
newErr.cause = err;
throw newErr;
}
}, retryOpts);
} catch (err) {