mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
do not retry SyntaxErrors
This commit is contained in:
parent
7a2abb1bf5
commit
fd41332a85
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ export function isRetryableError(e: unknown): boolean {
|
||||||
if (e instanceof UnrecoverableError) return false;
|
if (e instanceof UnrecoverableError) return false;
|
||||||
if (e instanceof AbortError) return true;
|
if (e instanceof AbortError) return true;
|
||||||
if (e instanceof FetchError) return true;
|
if (e instanceof FetchError) return true;
|
||||||
|
if (e instanceof SyntaxError) return false;
|
||||||
if (e instanceof Error) return e.name === 'AbortError';
|
if (e instanceof Error) return e.name === 'AbortError';
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue