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 ef30540756
commit 3e3ef4d6d2
4 changed files with 9 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ try {
} catch(e) {
console.log("Error - missing file");
console.log("Seems you forgot to create the file api_key.js in /server/config/. Have a look at api_key.example.js.");
process.exit();
process.exit(1);
}
var request = require('request');
var db = require(pathThumbnails + '/handlers/db.js');