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
This commit is contained in:
parent
939f678e65
commit
76005c917f
|
@ -555,7 +555,7 @@ class FilterExpression(object):
|
||||||
filters.append( (filter_func,args))
|
filters.append( (filter_func,args))
|
||||||
upto = match.end()
|
upto = match.end()
|
||||||
if upto != len(token):
|
if upto != len(token):
|
||||||
raise TemplateSyntaxError, "Could not parse the remainder: %s" % token[upto:]
|
raise TemplateSyntaxError, "Could not parse the remainder: '%s' from '%s'" % (token[upto:], token)
|
||||||
self.var, self.filters = var, filters
|
self.var, self.filters = var, filters
|
||||||
|
|
||||||
def resolve(self, context, ignore_failures=False):
|
def resolve(self, context, ignore_failures=False):
|
||||||
|
|
Loading…
Reference in New Issue