From 7d93608186f6d694b911a6a16b9fc87228860581 Mon Sep 17 00:00:00 2001 From: eight Date: Fri, 14 Aug 2020 22:32:24 +0800 Subject: [PATCH] Fix: show sync start error (#1016) * Update lock file * Fix: the first sync doesn't collect error messages --- background/sync.js | 1 + package-lock.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); diff --git a/package-lock.json b/package-lock.json index 466000f6..5a767709 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "Stylus", - "version": "1.5.12", + "version": "1.5.13", "lockfileVersion": 1, "requires": true, "dependencies": {