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

Improve Error Messages in Strict Mode #251

Closed
bheisler opened this issue Dec 29, 2018 · 1 comment
Closed

Improve Error Messages in Strict Mode #251

bheisler opened this issue Dec 29, 2018 · 1 comment

Comments

@bheisler
Copy link

When a template is rendered in strict mode, if a value is not found Handlebars just gives this generic error message:

Failed to render index template: RenderError { desc: "Value not found in strict mode.", template_name: Some("index"), line_no: Some(70), column_no: Some(13), cause: None }

It would be helpful if it included which value was not found and the path through the context that it was looking for. It can sometimes be difficult to track or understand what this refers to in the context (especially when using the {{ each ... as |name|}} syntax).

@bheisler
Copy link
Author

Ah, my bad. It looks like this has been fixed since 1.0.3.

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

1 participant