-
Notifications
You must be signed in to change notification settings - Fork 231
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
Swallowing errors in templates #555
Comments
Pause on all exceptions is your friend. Beyond that we can also rethrow the error Best of both worlds |
It's more informative in that "hey, handlebars got upset" but
doesn't offer too many clues as to what's going on :/ |
@danheberden i don't think the later is really an EAK thing... Although the former we can likely improve :) |
I see the same error in my application, but I can't track it down to some template error since I also get it if I test it with the following
I created my own
and I add it to my Application like:
Alas I'm logging all |
As I traced down the problem (first I didn't recognize your comment on using pause on all exceptions in dev tools @stefanpenner ) I could see that my problem(s) is/are not related to the template file but are several problems with my code where the messages of the errors are not shown but swallowed. I saw that the messages from Is there an internal error handler swallowing the assertions and errors thrown by |
@danheberden your example in
|
When a syntax error exists in a handlebars template, no meaningful error is exposed. I was able to get this distilled to the following:
application.hbs
fileObviously incorrect syntax, but we should get some sort of "hey, bozo, you goofed up in your
application.hbs
template" or at least a better stack trace than:This at least shows an error. I've been getting situations lately when there is an error in my view and the app just simple doesn't render it. Under the Ember Dev Tools promises section i get:
The text was updated successfully, but these errors were encountered: