diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-07-19 12:32:32 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-07-19 12:32:32 +0000 |
| commit | 466b90c788bbeb37f717555260701db0001db41b (patch) | |
| tree | 6cdd267f9890b3b38f233c10267a70384b7973b1 /django/template | |
| parent | 271093d3b31cbee9e8042a43675e76507d4501e0 (diff) | |
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
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py index e898fc7636..ea82a4697f 100644 --- a/django/template/__init__.py +++ b/django/template/__init__.py @@ -708,9 +708,9 @@ class DebugNodeList(NodeList): 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 |
