mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-31 06:56:12 +02:00
Nicer handling of config file errors at startup
This commit is contained in:
parent
ce15511cf1
commit
20bbbd2f59
3 changed files with 15 additions and 4 deletions
|
@ -48,7 +48,6 @@ exports.Config = class Config extends ConfigLoader {
|
|||
systemConfigInstance = new Config(options);
|
||||
systemConfigInstance.init(baseConfigPath, err => {
|
||||
if (err) {
|
||||
console.stdout(`Configuration ${baseConfigPath} error: ${err.message}`); // eslint-disable-line no-console
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
|
@ -56,7 +55,7 @@ exports.Config = class Config extends ConfigLoader {
|
|||
// instance we just created
|
||||
exports.get = systemConfigInstance.get.bind(systemConfigInstance);
|
||||
|
||||
return cb(err);
|
||||
return cb(null);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue