Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3948 -- Added some extra relevant information to FilterExpression

parse-related error message. Thanks, philippe.raoult@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 76005c917f96422d4818cb88651f4c8220cf2ad5 1 parent 939f678
Malcolm Tredinnick authored April 25, 2007

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

  1. 6  django/template/__init__.py
6  django/template/__init__.py
@@ -123,10 +123,10 @@ class VariableDoesNotExist(Exception):
123 123
     def __init__(self, msg, params=()):
124 124
         self.msg = msg
125 125
         self.params = params
126  
-    
  126
+
127 127
     def __str__(self):
128 128
         return self.msg % self.params
129  
-    
  129
+
130 130
 class InvalidTemplateLibrary(Exception):
131 131
     pass
132 132
 
@@ -555,7 +555,7 @@ def __init__(self, token, parser):
555 555
                 filters.append( (filter_func,args))
556 556
                 upto = match.end()
557 557
         if upto != len(token):
558  
-            raise TemplateSyntaxError, "Could not parse the remainder: %s" % token[upto:]
  558
+            raise TemplateSyntaxError, "Could not parse the remainder: '%s' from '%s'" % (token[upto:], token)
559 559
         self.var, self.filters = var, filters
560 560
 
561 561
     def resolve(self, context, ignore_failures=False):

0 notes on commit 76005c9

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