ignore HTTP502 error when syncing
This commit is contained in:
parent
b8f6f5db8d
commit
01e2e09fa5
|
@ -208,7 +208,10 @@ const syncMan = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isNetworkError(err) {
|
function isNetworkError(err) {
|
||||||
return err.name === 'TypeError' && /networkerror|failed to fetch/i.test(err.message);
|
return (
|
||||||
|
err.name === 'TypeError' && /networkerror|failed to fetch/i.test(err.message) ||
|
||||||
|
err.code === 502
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isGrantError(err) {
|
function isGrantError(err) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user