Skip to content

Commit

Permalink
QuickInput: Error Message on File not Found
Browse files Browse the repository at this point in the history
Fixes an issue where the error message did not render when file not found.

Signed-Off-By: FernandoAscencio <[email protected]>
  • Loading branch information
FernandoAscencio committed Mar 2, 2023
1 parent f7ef6b5 commit 3398e33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/file-search/src/browser/quick-file-open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ export class QuickFileOpenService implements QuickAccessProvider {
widget.editor.restoreViewState(closedEditor.viewState);
}
})
.catch(error => this.messageService.error(error));
.catch(error => {
console.warn(error);
this.messageService.error(error.message);
});
}

protected buildOpenerOptions(): EditorOpenerOptions {
Expand Down

0 comments on commit 3398e33

Please sign in to comment.