always have an error when stopping sync

This commit is contained in:
Bruno Windels 2020-11-05 21:21:27 +01:00
parent 9f453c0984
commit 134f018849

View file

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