Skip to content

Commit

Permalink
informative error when jshintrc is invalid
Browse files Browse the repository at this point in the history
When jshintrc is incorrect, i want to know what happened. Therefore i am adding the error message to the error and not just saying that the file couldn't be parsed
  • Loading branch information
david-gang committed Feb 15, 2015
1 parent 4e59553 commit eb46f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.js
Expand Up @@ -540,7 +540,7 @@ var exports = {

return config;
} catch (err) {
cli.error("Can't parse config file: " + fp);
cli.error("Can't parse config file: " + fp +"\n Error:"+err);
exports.exit(1);
}
},
Expand Down

0 comments on commit eb46f40

Please sign in to comment.