comparison mercurial/commands.py @ 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 cde6818e082a
comparison
equal deleted inserted replaced
1214:34706a835d4a 1215:8b4435aae40a
2001 u.warn("%s: invalid arguments\n" % cmd) 2001 u.warn("%s: invalid arguments\n" % cmd)
2002 help_(u, cmd) 2002 help_(u, cmd)
2003 except UnknownCommand, inst: 2003 except UnknownCommand, inst:
2004 u.warn("hg: unknown command '%s'\n" % inst.args[0]) 2004 u.warn("hg: unknown command '%s'\n" % inst.args[0])
2005 help_(u, 'shortlist') 2005 help_(u, 'shortlist')
2006 except SystemExit:
2007 # don't catch this is the catch-all below
2008 raise
2009 except:
2010 u.warn("** unknown exception encountered, details follow\n")
2011 u.warn("** report bug details to mercurial@selenic.com\n")
2012 raise
2006 2013
2007 sys.exit(-1) 2014 sys.exit(-1)