Changeset 5067
- Timestamp:
- 04/25/07 02:05:31 (2 years ago)
- Files:
-
- django/trunk/django/template/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/__init__.py
r4690 r5067 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 … … 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
