more log
This commit is contained in:
parent
bcca2b4446
commit
f334198241
@ -86,6 +86,7 @@ export default class SaveRemotePlugin extends Plugin {
|
|||||||
// console.log(localHistory);
|
// console.log(localHistory);
|
||||||
|
|
||||||
new Notice("4/6 Starting to generate sync plan.");
|
new Notice("4/6 Starting to generate sync plan.");
|
||||||
|
this.syncStatus = "generating_plan";
|
||||||
const mixedStates = await ensembleMixedStates(
|
const mixedStates = await ensembleMixedStates(
|
||||||
remoteRsp.Contents,
|
remoteRsp.Contents,
|
||||||
local,
|
local,
|
||||||
@ -116,10 +117,15 @@ export default class SaveRemotePlugin extends Plugin {
|
|||||||
);
|
);
|
||||||
|
|
||||||
new Notice("6/6 Save Remote finish!");
|
new Notice("6/6 Save Remote finish!");
|
||||||
|
this.syncStatus = "finish";
|
||||||
this.syncStatus = "idle";
|
this.syncStatus = "idle";
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
new Notice(`Save Remote error while ${this.syncStatus}: ${error}`);
|
|
||||||
this.syncStatus = "idle";
|
this.syncStatus = "idle";
|
||||||
|
const msg = `Save Remote error while ${this.syncStatus}`;
|
||||||
|
console.log(msg);
|
||||||
|
console.log(error);
|
||||||
|
new Notice(msg);
|
||||||
|
new Notice(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user