diff --git a/django/template/__init__.py b/django/template/__init__.py index 9811a5649d..4f2ddfc8b3 100644 --- a/django/template/__init__.py +++ b/django/template/__init__.py @@ -479,7 +479,7 @@ class TokenParser(object): while i < len(subject) and subject[i] != c: i += 1 if i >= len(subject): - raise TemplateSyntaxError, "Searching for value. Unexpected end of string in column %d: %s" % subject + raise TemplateSyntaxError, "Searching for value. Unexpected end of string in column %d: %s" % (i, subject) i += 1 s = subject[p:i] while i < len(subject) and subject[i] in (' ', '\t'):