#19819: Django highlights incorrect lines for template errors
-------------------------------------+-------------------------------------
     Reporter:                       |                    Owner:  nobody
  michaelvantellingen@…              |                   Status:  closed
         Type:  Bug                  |                  Version:  1.4
    Component:  Template system      |               Resolution:  fixed
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  1
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by Aymeric Augustin <aymeric.augustin@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"138de533ff677b470a1e7b4b6ff084a5b7a7444b"]:
 {{{
 #!CommitTicketReference repository=""
 revision="138de533ff677b470a1e7b4b6ff084a5b7a7444b"
 Fixed #19819 - Improved template filter errors handling.

 Wrap the Parser.compile_filter method call with a try/except and call the
 newly added Parser.compile_filter_error(). Overwrite this method in the
 DebugParser to throw the correct error.

 Since this error was otherwise catched by the compile_function try/except
 block the debugger highlighted the wrong line.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19819#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to