mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-29 22:16:11 +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
|
@ -180,6 +180,9 @@ module.exports = class ConfigLoader {
|
|||
};
|
||||
|
||||
ConfigCache.getConfigWithOptions(options, (err, config) => {
|
||||
if (err) {
|
||||
err.configPath = options.filePath;
|
||||
}
|
||||
return cb(err, config);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue