machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

Better error messaging #180

Closed stevehanson closed 8 years ago

stevehanson commented 9 years ago

It would be awesome if we could get some better error messaging. The only error message I can recall seeing from Emblem is:

Emblem syntax error, line x: Expected BeginStatement or DEDENT but "\uEFEF" found.

The problem is that the message is not very descriptive and doesn't help me identify the actual problem. BeginStatement, DEDENT and \uEFEF seem like implementation details that the user shouldn't have to be exposed to. Also, the line number is not usually meaningful. It usually is line 3 or 4, and I have not seen it correspond to the location of my actual error.

Thanks for your work on Emblem.js - great tool!

Evkin commented 9 years ago

+1 please

kjhangiani commented 8 years ago

Also +1, this is literally the only error message I have ever seen

thec0keman commented 8 years ago

Moved to #276