From 775f0300dbf86d94cf326b9238d04b9049018385 Mon Sep 17 00:00:00 2001 From: eight04 Date: Fri, 14 Aug 2020 19:31:35 +0800 Subject: [PATCH] Fix: the first sync doesn't collect error messages --- background/sync.js | 1 + 1 file changed, 1 insertion(+) diff --git a/background/sync.js b/background/sync.js index ca9bab90..cb03f4f0 100644 --- a/background/sync.js +++ b/background/sync.js @@ -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);