Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 1214:34706a835d4a
Smarter handling of revlog key errors
Use RevlogError for reporting exceptions
Catch and report RevlogError exceptions at the command parser
author | mpm@selenic.com |
---|---|
date | Wed, 07 Sep 2005 23:38:28 -0700 |
parents | ccb6201e3f28 |
children | 8b4435aae40a |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Sep 07 23:13:12 2005 -0700 +++ b/mercurial/commands.py Wed Sep 07 23:38:28 2005 -0700 @@ -1961,6 +1961,8 @@ raise except hg.RepoError, inst: u.warn("abort: ", inst, "!\n") + except revlog.RevlogError, inst: + u.warn("abort: ", inst, "!\n") except SignalInterrupt: u.warn("killed!\n") except KeyboardInterrupt: