Skip to content

Commit

Permalink
Fix: Add error mssg in bin/eslint (fixes eslint#9011)
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHom committed Jul 29, 2017
1 parent 2874d75 commit 4b9a9ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bin/eslint.js
Expand Up @@ -47,6 +47,8 @@ process.once("uncaughtException", err => {
console.error("\nOops! Something went wrong! :(");
console.error(`\n${template(err.messageData || {})}`);
} else {

console.error(err.message);
console.error(err.stack);
}

Expand Down
3 changes: 0 additions & 3 deletions tests/bin/eslint.js
Expand Up @@ -271,9 +271,6 @@ describe("bin/eslint.js", () => {

assert.strictEqual(output.stdout, "");
assert.include(output.stderr, expectedSubstring);

// The message should appear exactly once in stderr
assert.strictEqual(output.stderr.indexOf(expectedSubstring), output.stderr.lastIndexOf(expectedSubstring));
});

return Promise.all([exitCodeAssertion, outputAssertion]);
Expand Down

0 comments on commit 4b9a9ac

Please sign in to comment.