Ticket #3948: template_readable_message_v1.diff

File template_readable_message_v1.diff, 632 bytes (added by philippe.raoult@…, 18 years ago)
  • django/template/__init__.py

     
    555555                filters.append( (filter_func,args))
    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 '%s' from '%s'" % (token[upto:], token)
    559559        self.var, self.filters = var, filters
    560560
    561561    def resolve(self, context, ignore_failures=False):
Back to Top