Author: mtredinnick
Date: 2006-07-19 07:32:32 -0500 (Wed, 19 Jul 2006)
New Revision: 3375
Modified:
django/trunk/django/template/__init__.py
Log:
Fixed #1647 -- Included slightly more information in template syntax error
displays in DebugNodeList.
Modified: django/trunk/django/template/__init__.py
===================================================================
--- django/trunk/django/template/__init__.py 2006-07-19 12:09:53 UTC (rev
3374)
+++ django/trunk/django/template/__init__.py 2006-07-19 12:32:32 UTC (rev
3375)
@@ -708,9 +708,9 @@
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---