Nicer handling of config file errors at startup
This commit is contained in:
@@ -180,6 +180,9 @@ module.exports = class ConfigLoader {
|
||||
};
|
||||
|
||||
ConfigCache.getConfigWithOptions(options, (err, config) => {
|
||||
if (err) {
|
||||
err.configPath = options.filePath;
|
||||
}
|
||||
return cb(err, config);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user