mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
bubble error
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
winston.error('Unable to initialize MongoDB! Is MongoDB installed? Error :' + err.message);
|
winston.error('Unable to initialize MongoDB! Is MongoDB installed? Error :' + err.message);
|
||||||
process.exit();
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
var usernamePassword = '';
|
var usernamePassword = '';
|
||||||
@@ -66,9 +66,9 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
mongoClient.connect(connString, connOptions, function(err, _db) {
|
mongoClient.connect(connString, connOptions, function(err, _db) {
|
||||||
if(err) {
|
if (err) {
|
||||||
winston.error("NodeBB could not connect to your Mongo database. Mongo returned the following error: " + err.message);
|
winston.error("NodeBB could not connect to your Mongo database. Mongo returned the following error: " + err.message);
|
||||||
process.exit();
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
db = _db;
|
db = _db;
|
||||||
|
|||||||
Reference in New Issue
Block a user