Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…error

displays in DebugNodeList.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3375 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/__init__.py
View
4 django/template/__init__.py
@@ -708,9 +708,9 @@ def render_node(self, node, context):
if not hasattr(e, 'source'):
e.source = node.source
raise
- 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

0 comments on commit 466b90c

Please sign in to comment.
Something went wrong with that request. Please try again.