Django

Code

Changeset 5067

Show
Ignore:
Timestamp:
04/25/07 02:05:31 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3948 -- Added some extra relevant information to FilterExpression?
parse-related error message. Thanks, philippe.raoult@gmail.com.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/__init__.py

    r4690 r5067  
    124124        self.msg = msg 
    125125        self.params = params 
    126      
     126 
    127127    def __str__(self): 
    128128        return self.msg % self.params 
    129      
     129 
    130130class InvalidTemplateLibrary(Exception): 
    131131    pass 
     
    556556                upto = match.end() 
    557557        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) 
    559559        self.var, self.filters = var, filters 
    560560