We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b4b70 commit 7c73862Copy full SHA for 7c73862
lib/config.js
@@ -25,7 +25,11 @@ export function getMergedConfig(dir, home) {
25
26
export function getConfig(configType, dir) {
27
const configPath = getConfigPath(configType, dir);
28
- return readJson(configPath);
+ try {
29
+ return readJson(configPath);
30
+ } catch (cause) {
31
+ throw new Error('Unable to parse config file ' + configPath, { cause });
32
+ }
33
};
34
35
export function getConfigPath(configType, dir) {
0 commit comments