Skip to content

Commit 1189886

Browse files
haoqunjiangtonyganch
authored andcommitted
[cli] Output a more reasonable error message when the configuration file is not
valid JSON, fixes #326
1 parent dcafc22 commit 1189886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function getConfig(options) {
117117
}
118118

119119
if (!config) {
120-
let message = `Configuration file ${configPath} was not found.`;
120+
let message = `Error parsing configuration file ${configPath}.`;
121121
process.stderr.write(format(message));
122122
process.exit(1);
123123
}

0 commit comments

Comments
 (0)