show full stack on sync error

This commit is contained in:
Bruno Windels 2019-06-16 15:49:00 +02:00
parent a09c3e7bed
commit b47898e025

View File

@ -62,7 +62,7 @@ export default class Sync extends EventEmitter {
} catch (err) { } catch (err) {
this._isSyncing = false; this._isSyncing = false;
if (!(err instanceof RequestAbortError)) { if (!(err instanceof RequestAbortError)) {
console.warn("stopping sync because of error", err.message); console.error("stopping sync because of error", err.stack);
this.emit("status", "error", err); this.emit("status", "error", err);
} }
} }