detect AbortError properly, name is a string

This commit is contained in:
Bruno Windels 2020-10-30 09:54:38 +01:00
parent 9afcb154cb
commit 3008367307

View file

@ -124,7 +124,7 @@ export class Sync {
// don't run afterSyncCompleted
continue;
}
if (err.name !== AbortError) {
if (err.name !== "AbortError") {
console.warn("stopping sync because of error");
console.error(err);
this._error = err;