Opened 9 years ago
Closed 9 years ago
#25404 closed Cleanup/optimization (fixed)
Template syntax errors should include line number in their message
Reported by: | Dave Smith | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
I realize the Django debug UI will show line numbers when DEBUG = True, and that's great. But what about when you are writing a test and your code raises an uncaught TemplateSyntaxError? In this case, it would be really nice if the TemplateSyntaxError's message would show the line number directly in the stack trace.
Change History (2)
comment:1 by , 9 years ago
Easy pickings: | unset |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In b53b4d5: