Skip to content

Commit ec54797

Browse files
committed
fix(sync): FIx a typo.
1 parent 44918f0 commit ec54797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ export default class InvioPlugin extends Plugin {
105105

106106
async viewFileDiff(filePath: string, diffType: TDiffType) {
107107
const file = this.app.vault.getAbstractFileByPath(filePath)
108-
if (!this.app.vault.adapter.exists(filePath)) {
108+
if (!await this.app.vault.adapter.exists(filePath)) {
109109
new Notice(`The file(${filePath}) does not exist locally`)
110110
return;
111111
}
112112
if (!(file instanceof TFile)) {
113-
new Notice('Not valid file');
113+
new Notice(`${filePath} is not a valid file`);
114114
return;
115115
}
116116
const client = new RemoteClient(

0 commit comments

Comments
 (0)