royriojas / eslint-friendly-formatter

A simple formatter/reporter for ESLint that's friendly with Sublime Text and iterm2 "click to open file" functionality
MIT License
198 stars 28 forks source link

Fix error when message.source is undefined. #12

Closed nkovacs closed 9 years ago

nkovacs commented 9 years ago

This happens when the javascript file has a parsing error.

Because of #11 the formatter crashes with a js error because of the charAt on undefined.

royriojas commented 9 years ago

nice fix, can you please add a unit test that cover this scenario?

thank you for your fixes.

nkovacs commented 9 years ago

Done

royriojas commented 9 years ago

published as part of v1.2.1