Skip to content

Commit

Permalink
[cli] Output a more reasonable error message when the configuration f…
Browse files Browse the repository at this point in the history
…ile is not

valid JSON, fixes csscomb#326
  • Loading branch information
haoqunjiang authored and tonyganch committed Jul 11, 2016
1 parent dcafc22 commit 1189886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function getConfig(options) {
}

if (!config) {
let message = `Configuration file ${configPath} was not found.`;
let message = `Error parsing configuration file ${configPath}.`;
process.stderr.write(format(message));
process.exit(1);
}
Expand Down

0 comments on commit 1189886

Please sign in to comment.