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

Template error supressed when it's included inside {% if %} #571

Closed
arty-name opened this issue Oct 29, 2015 · 0 comments
Closed

Template error supressed when it's included inside {% if %} #571

arty-name opened this issue Oct 29, 2015 · 0 comments
Labels

Comments

@arty-name
Copy link
Contributor

I have a template with an error, i.e. like bad.html:

 {% fail %}some output

When I include this file I get a proper error message:

{% include './bad.html' %}

Template render error: (backend/src/views/test/include.html)
 Template render error: (backend/src/views/test/bad.html) [Line 1, Column 2]
 unknown block tag: fail

However when I include this file inside an {% if %} tag I get no error:

{% if true %}
{% include './bad.html' %}
{% endif %}

The included template just stops rendering at the point of failure, I see neither some output nor error message.

@carljm carljm added the bug label Dec 14, 2015
carljm added a commit that referenced this issue Jan 14, 2016
fix #571, make asyncif handle error
carljm added a commit that referenced this issue Jan 14, 2016
fix #571, make asyncif handle error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants