Fix: the first sync doesn't collect error messages

This commit is contained in:
eight04 2020-08-14 19:31:35 +08:00
parent d6628f580f
commit 775f0300db

View File

@ -192,6 +192,7 @@ const sync = (() => {
.catch(handle401Error)
.then(() => syncNow()),
err => {
status.errorMessage = err ? err.message : null;
// FIXME: should we move this logic to options.js?
if (err && !fromPref) {
console.error(err);