mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 12:14:18 +00:00
do not retry SyntaxErrors
This commit is contained in:
@@ -18,6 +18,7 @@ export function isRetryableError(e: unknown): boolean {
|
||||
if (e instanceof UnrecoverableError) return false;
|
||||
if (e instanceof AbortError) return true;
|
||||
if (e instanceof FetchError) return true;
|
||||
if (e instanceof SyntaxError) return false;
|
||||
if (e instanceof Error) return e.name === 'AbortError';
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user