ignore HTTP502 error when syncing

This commit is contained in:
tophf 2021-02-28 08:37:56 +03:00
parent b8f6f5db8d
commit 01e2e09fa5

View File

@ -208,7 +208,10 @@ const syncMan = (() => {
}
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) {