Nicer handling of config file errors at startup
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user