esvalidate icon indicating copy to clipboard operation
esvalidate copied to clipboard

Unhelpful error messages

Open sbrl opened this issue 8 years ago • 1 comments

The error messages generated by esvalidate are extremely unhelpful. Take this for example:

user@local:~$ node_modules/.bin/esvalidate index.js
Error: Unexpected reserved word

Where did the error occur? What line? Which file? Which word is reserved? I can't debug an error without adequate information.

sbrl avatar Feb 21 '17 19:02 sbrl

Instead of the (it seems default) plain formatter try --format=sublime like this:

node_modules/.bin/esvalidate --format=sublime index.js

It gives a more readable output such as:

[esvalidate src\getDocument.js]
  16,46: Unexpected token =>

lantrix avatar Mar 15 '17 03:03 lantrix