Mercurial > hg-stable
changeset 1215:8b4435aae40a
Add reporting instructions to unknown exception backtraces
author | mpm@selenic.com |
---|---|
date | Wed, 07 Sep 2005 23:57:59 -0700 |
parents | 34706a835d4a |
children | 1639fc7c2ccf |
files | mercurial/commands.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Sep 07 23:38:28 2005 -0700 +++ b/mercurial/commands.py Wed Sep 07 23:57:59 2005 -0700 @@ -2003,5 +2003,12 @@ except UnknownCommand, inst: u.warn("hg: unknown command '%s'\n" % inst.args[0]) help_(u, 'shortlist') + except SystemExit: + # don't catch this is the catch-all below + raise + except: + u.warn("** unknown exception encountered, details follow\n") + u.warn("** report bug details to mercurial@selenic.com\n") + raise sys.exit(-1)