mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Fix types
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user