author | Brodie Rao <brodie@bitheap.org> |
Wed, 22 Sep 2010 19:15:27 -0500 | |
branch | stable |
changeset 12385 | 9a93f4fb141b |
parent 12384 | ffcceca7406d |
child 12386 | 8eedf53547b8 |
child 12391 | ca5fd84d62c6 |
--- a/mercurial/commands.py Thu Sep 23 00:27:04 2010 -0600 +++ b/mercurial/commands.py Wed Sep 22 19:15:27 2010 -0500 @@ -1569,7 +1569,7 @@ reflags |= re.I try: regexp = re.compile(pattern, reflags) - except Exception, inst: + except re.error, inst: ui.warn(_("grep: invalid match pattern: %s\n") % inst) return 1 sep, eol = ':', '\n'