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 a700fcc commit 0eb9d59Copy full SHA for 0eb9d59
packages/shell-api/src/shell-internal-state.ts
@@ -126,8 +126,9 @@ export default class ShellInternalState {
126
this.currentDb = newDb;
127
this.context.rs = new ReplicaSet(this.currentDb);
128
this.context.sh = new Shard(this.currentDb);
129
- this.fetchConnectionInfo();
130
- this.currentDb._getCollectionNames(); // Pre-fetch for autocompletion.
+ this.fetchConnectionInfo().catch(err => this.messageBus.emit('mongosh:error', err));
+ // Pre-fetch for autocompletion.
131
+ this.currentDb._getCollectionNames().catch(err => this.messageBus.emit('mongosh:error', err));
132
return newDb;
133
}
134
0 commit comments