Code

Opened 3 years ago

Closed 3 years ago

#16181 closed Bug (duplicate)

Template debugger highlights the row with error incorrectly

Reported by: vladmos 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.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by Zaheer

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.