Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
michelelizzit committed Nov 16, 2023
1 parent c0f8bc2 commit 206c6e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,10 @@ export class RemoteDB {
}
catch (e) {
// Show error to the user
if ((e as Error).message.includes("Authentication failed")) {
vscode.window.showErrorMessage('MongoDB authfail error: ' + (e as Error).message);
return 0;
}
vscode.window.showErrorMessage('MongoDB connection error: ' + (e as Error).message);
return -1;
}
Expand Down

0 comments on commit 206c6e3

Please sign in to comment.