Skip to content

Commit 946b0bb

Browse files
committed
🐛 Properly hide statusbar on connect error
1 parent 043b03b commit 946b0bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connect/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ var ConnectView = View.extend({
250250

251251
if (model.auth_mechanism !== 'SCRAM-SHA-1') {
252252
debug('failed to connect', err);
253+
app.statusbar.hide();
253254
this.onError(new Error('Could not connect to MongoDB.'), model);
254255
return;
255256
}
@@ -261,6 +262,7 @@ var ConnectView = View.extend({
261262

262263
model.test(function(err) {
263264
if (err) {
265+
app.statusbar.hide();
264266
debug('failed to connect again... bailing', err);
265267
this.onError(new Error('Could not connect to MongoDB.'), model);
266268
return;

0 commit comments

Comments
 (0)