Nicer handling of config file errors at startup

This commit is contained in:
Bryan Ashby 2020-06-18 21:29:24 -06:00
parent ce15511cf1
commit 20bbbd2f59
No known key found for this signature in database
GPG key ID: B49EB437951D2542
3 changed files with 15 additions and 4 deletions

View file

@ -180,6 +180,9 @@ module.exports = class ConfigLoader {
};
ConfigCache.getConfigWithOptions(options, (err, config) => {
if (err) {
err.configPath = options.filePath;
}
return cb(err, config);
});
}