From 3a14f86880348ab6ab358bfaa4bd07eb16b0ba11 Mon Sep 17 00:00:00 2001 From: fyears Date: Sun, 7 Nov 2021 00:07:10 +0800 Subject: [PATCH] fix error msg --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index bc29129..9b42d55 100644 --- a/src/main.ts +++ b/src/main.ts @@ -120,12 +120,12 @@ export default class SaveRemotePlugin extends Plugin { this.syncStatus = "finish"; this.syncStatus = "idle"; } catch (error) { - this.syncStatus = "idle"; const msg = `Save Remote error while ${this.syncStatus}`; console.log(msg); console.log(error); new Notice(msg); new Notice(error); + this.syncStatus = "idle"; } });