You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm just trying to connect to MongoDB using MongoSkin's MongoClient.connect(url) when the DB is not running, but it doesn't throw any error. I couldn't able to find any docs for listening to connection failure.
var mongo = require('mongoskin');
try {
var db = mongo.MongoClient.connect(mongo.url)
} catch(e) {
console.log(e);
}
The text was updated successfully, but these errors were encountered:
Hi,
I'm just trying to connect to MongoDB using MongoSkin's MongoClient.connect(url) when the DB is not running, but it doesn't throw any error. I couldn't able to find any docs for listening to connection failure.
The text was updated successfully, but these errors were encountered: