Show More
@@ -29,7 +29,7 b' def dispatch(args):' | |||
|
29 | 29 | sys.stderr.write(_("hg: parse error at %s: %s\n") % |
|
30 | 30 | (inst.args[1], inst.args[0])) |
|
31 | 31 | else: |
|
32 |
sys.stderr.write(_("hg: parse error: %s\n") % in |
|
|
32 | sys.stderr.write(_("hg: parse error: %s\n") % inst.args[0]) | |
|
33 | 33 | return -1 |
|
34 | 34 | return _runcatch(u, args) |
|
35 | 35 |
@@ -33,8 +33,8 b' class parser(object):' | |||
|
33 | 33 | def _match(self, m): |
|
34 | 34 | 'make sure the tokenizer matches an end condition' |
|
35 | 35 | if self.current[0] != m: |
|
36 |
raise error.ParseError("unexpected token: %s" % self.current[ |
|
|
37 |
|
|
|
36 | raise error.ParseError("unexpected token: %s" % self.current[0], | |
|
37 | self.current[2]) | |
|
38 | 38 | self._advance() |
|
39 | 39 | def _parse(self, bind=0): |
|
40 | 40 | token, value, pos = self._advance() |
General Comments 0
You need to be logged in to leave comments.
Login now