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 621060e commit 2277a22Copy full SHA for 2277a22
templates/mongoshrc.js.erb
@@ -23,9 +23,11 @@ function authRequired() {
23
} catch (err) {
24
if (err.message.match(/requires authentication/) || err.message.match(/not authorized on admin/)) {
25
return true
26
- } else {
27
- throw("Unknown error :" + err)
+ if (err.message.match(/not running with --replSet/) {
+ return false
28
}
29
+ throw("Unknown error :" + err)
30
+ }
31
32
33
0 commit comments