Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/template/__init__.py
4  django/template/__init__.py
@@ -708,9 +708,9 @@ def render_node(self, node, context):
708 708
             if not hasattr(e, 'source'):
709 709
                 e.source = node.source
710 710
             raise
711  
-        except Exception:
  711
+        except Exception, e:
712 712
             from sys import exc_info
713  
-            wrapped = TemplateSyntaxError('Caught an exception while rendering.')
  713
+            wrapped = TemplateSyntaxError('Caught an exception while rendering: %s' % e)
714 714
             wrapped.source = node.source
715 715
             wrapped.exc_info = exc_info()
716 716
             raise wrapped

0 notes on commit 466b90c

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