We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44918f0 commit ec54797Copy full SHA for ec54797
src/main.ts
@@ -105,12 +105,12 @@ export default class InvioPlugin extends Plugin {
105
106
async viewFileDiff(filePath: string, diffType: TDiffType) {
107
const file = this.app.vault.getAbstractFileByPath(filePath)
108
- if (!this.app.vault.adapter.exists(filePath)) {
+ if (!await this.app.vault.adapter.exists(filePath)) {
109
new Notice(`The file(${filePath}) does not exist locally`)
110
return;
111
}
112
if (!(file instanceof TFile)) {
113
- new Notice('Not valid file');
+ new Notice(`${filePath} is not a valid file`);
114
115
116
const client = new RemoteClient(
0 commit comments