Fix: show sync start error (#1016)

* Update lock file

* Fix: the first sync doesn't collect error messages
This commit is contained in:
eight 2020-08-14 22:32:24 +08:00 committed by GitHub
parent 54b1f218e0
commit 7d93608186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

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);

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "Stylus",
"version": "1.5.12",
"version": "1.5.13",
"lockfileVersion": 1,
"requires": true,
"dependencies": {