Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #1647 -- Included slightly more information in template syntax …


displays in DebugNodeList.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 466b90c788bbeb37f717555260701db0001db41b 1 parent 271093d
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/template/
4 django/template/
@@ -708,9 +708,9 @@ def render_node(self, node, context):
if not hasattr(e, 'source'):
e.source = node.source
- except Exception:
+ except Exception, e:
from sys import exc_info
- wrapped = TemplateSyntaxError('Caught an exception while rendering.')
+ wrapped = TemplateSyntaxError('Caught an exception while rendering: %s' % e)
wrapped.source = node.source
wrapped.exc_info = exc_info()
raise wrapped
Please sign in to comment.
Something went wrong with that request. Please try again.