#28698: Show template origin in TemplateSyntaxError
------------------------------------------------+------------------------
               Reporter:  Jonas Haag            |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Template system       |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  1                     |
------------------------------------------------+------------------------
 Example of current error message:


 {{{
 django.template.exceptions.TemplateSyntaxError: Invalid block tag on line
 8: 'trans', expected 'endblock'. Did you forget to register or load this
 tag?
 }}}

 With my patch:

 {{{
 django.template.exceptions.TemplateSyntaxError: app/yourtemplate.html:
 Invalid block tag on line 8: 'trans', expected 'endblock'. Did you forget
 to register or load this tag?
 }}}

 I'm willing to contribute tests and documentation if the general idea is
 accepted.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28698>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.bc6f24ff0894cabc585506e7dc725128%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to