Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors don't show where they are occurring #66

Closed
Frozenfire92 opened this issue Jun 26, 2014 · 2 comments
Closed

Errors don't show where they are occurring #66

Frozenfire92 opened this issue Jun 26, 2014 · 2 comments

Comments

@Frozenfire92
Copy link

Hello. I'm running into an error when compiling my templates and it doesn't provide any useful information as to where the error is occurring.

Warning: Running "emberTemplates:dist" (emberTemplates) task
    >> Error: if doesn't match each
    Warning: Ember Handlebars failed to compile ... Use --force to continue.

It would be nice if it told me what line is causing this error. I've manually searched my template and it appears all of my if/else/each match each other (other colleagues have confirmed too).

@Frozenfire92
Copy link
Author

The issue turned out to be an improperly closed handlebars comment.

ie {{!-- bad comment }}

Would it be possible to detect these? As well as the original issue of not showing what line the error is caused by :)

@zoltan-nz
Copy link
Collaborator

The v1.0 of this package uses the official ember-template-compiler.js which shows very useful error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants