* New user / apply crashes if no message areas defined #19

This commit is contained in:
Bryan Ashby 2015-11-20 23:46:48 -07:00
parent 839ab8fc91
commit 3ad43c07e8
2 changed files with 43 additions and 13 deletions

View file

@ -47,9 +47,18 @@ function bbsMain() {
// If the user supplied a path and we can't read/parse it
// then it's a fatal error
//
if(err) {
if('ENOENT' === err.code) {
console.error('Configuration file does not exist: ' + configPath);
} else {
console.error(err.toString());
}
}
callback(err);
/*
if(configPathSupplied && err) {
if('ENOENT' === err.code) {
console.error('Configuration file does not existing: ' + configPath);
console.error('Configuration file does not exist: ' + configPath);
} else {
console.error('Failed parsing configuration: ' + configPath);
}
@ -57,6 +66,7 @@ function bbsMain() {
} else {
callback(null);
}
*/
});
},
function initSystem(callback) {