mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 12:08:21 +02:00
* New user / apply crashes if no message areas defined #19
This commit is contained in:
parent
839ab8fc91
commit
3ad43c07e8
2 changed files with 43 additions and 13 deletions
12
core/bbs.js
12
core/bbs.js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue