Opened 14 years ago
Closed 14 years ago
#16181 closed Bug (duplicate)
Template debugger highlights the row with error incorrectly
Reported by: | Vladimir Moskva | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Imagine you have a template like
{% for item in loop %} {% broken_tag %} {% endfor %}
where loop is any not empty iterable, and "broken_tag" tag raises an exception (whatever the exception is). Then template debugger will highlight the first string with the for statement instead of the "broken_tag" string as a place where the error occured.
Note:
See TracTickets
for help on using tickets.
Duplicate ticket, check https://code.djangoproject.com/ticket/5831