Fix: the first sync doesn't collect error messages
This commit is contained in:
parent
d6628f580f
commit
775f0300db
|
@ -192,6 +192,7 @@ const sync = (() => {
|
||||||
.catch(handle401Error)
|
.catch(handle401Error)
|
||||||
.then(() => syncNow()),
|
.then(() => syncNow()),
|
||||||
err => {
|
err => {
|
||||||
|
status.errorMessage = err ? err.message : null;
|
||||||
// FIXME: should we move this logic to options.js?
|
// FIXME: should we move this logic to options.js?
|
||||||
if (err && !fromPref) {
|
if (err && !fromPref) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user