Skip to content

Commit

Permalink
Update: add eslint version to error output. (fixes eslint#9037)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Aug 4, 2017
1 parent 37158c5 commit 7d20564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ process.once("uncaughtException", err => {
const template = lodash.template(fs.readFileSync(path.resolve(__dirname, `../messages/${err.messageTemplate}.txt`), "utf-8"));

console.error("\nOops! Something went wrong! :(");
console.error(`\n${template(err.messageData || {})}`);
console.error(`\nESLint: ${cli.execute("-v")}.${template(err.messageData || {})}`);
} else {

console.error(err.message);
Expand Down

0 comments on commit 7d20564

Please sign in to comment.