# HG changeset patch # User mpm@selenic.com # Date 1126162679 25200 # Node ID 8b4435aae40a1af75447209d70478f1fabafe231 # Parent 34706a835d4ad77c75fec3a2b733d01ed22b1ac0 Add reporting instructions to unknown exception backtraces diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2003,5 +2003,12 @@ def dispatch(args): 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)