changeset 11305 | d4cafcb63f77 |
parent 11289 | 4215ce511134 |
child 11319 | 9d1cf337a78d |
--- a/mercurial/parser.py Tue Jun 08 09:30:33 2010 +0200 +++ b/mercurial/parser.py Tue Jun 08 09:30:45 2010 +0200 @@ -33,8 +33,8 @@ def _match(self, m): 'make sure the tokenizer matches an end condition' if self.current[0] != m: - raise error.ParseError("unexpected token: %s" % self.current[2], - pos) + raise error.ParseError("unexpected token: %s" % self.current[0], + self.current[2]) self._advance() def _parse(self, bind=0): token, value, pos = self._advance()