Better nice-fail if files are missing, and more correctly start non-clustered run

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-25 12:26:55 +02:00
parent dd5f8b6a4b
commit c32ccc63eb
4 changed files with 9 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ try {
} catch(e) {
console.log("Error - missing file");
console.log("Seems you forgot to create the file mongo_config.js in /server/config/. Have a look at mongo_config.example.js.");
process.exit();
process.exit(1);
}
var mongojs = require('mongojs');
var connected_db = mongojs('mongodb://' + mongo_config.host + '/user_credentials');