{"action":"closed","issue":{"url":"https://api.github.com/repos/millermedeiros/esformatter/issues/303","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/303/comments","events_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/303/events","html_url":"https://github.com/millermedeiros/esformatter/issues/303","id":65349197,"number":303,"title":"needs better error messages when formatting multiple files","user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/millermedeiros/esformatter/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/millermedeiros/esformatter/milestones/3","html_url":"https://github.com/millermedeiros/esformatter/milestones/v0.7.0","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/milestones/3/labels","id":1040218,"number":3,"title":"v0.7.0","description":"","creator":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":2,"state":"open","created_at":"2015-03-26T15:45:22Z","updated_at":"2015-03-31T05:32:37Z","due_on":"2015-04-28T03:00:00Z","closed_at":null},"comments":1,"created_at":"2015-03-31T02:45:59Z","updated_at":"2015-03-31T05:32:37Z","closed_at":"2015-03-31T05:32:37Z","body":"right now if it throws an error while trying to parse a file we have no idea where the error came from:\r\n\r\n```\r\n$ esformatter -i lib/**/*.js\r\n/Users/millermedeiros/Projects/opensource/rocambole/node_modules/esprima/esprima.js:4365\r\n            throw e;\r\n                  ^\r\nError: Line 123: Unexpected token &\r\n```\r\n\r\nit should say which file triggered the error and we probably shouldn't even list \"esprima\" on the error message at all. We should probably say something like:\r\n\r\n```\r\nError: /Users/millermedeiros/foo/bar.js:123 Unexpected token &\r\n```\r\n\r\nwe should follow the format `Error: <filepath>:<line> <error_message>` (keep error message into a single line) to make it easier for other tools to parse it (some editors/terminals understand the `:<line>` after the file name but couldn't find any link to prove it's a real standard)"}}