mercurial/dispatch.py
changeset 11574 6381fa7bfa53
parent 11556 c20c2c4c0c63
child 11601 4d9b4725acac
--- a/mercurial/dispatch.py	Thu Jul 15 14:40:17 2010 +0200
+++ b/mercurial/dispatch.py	Thu Jul 15 14:41:22 2010 +0200
@@ -23,6 +23,8 @@
             u.setconfig('ui', 'traceback', 'on')
     except util.Abort, inst:
         sys.stderr.write(_("abort: %s\n") % inst)
+        if inst.hint:
+            sys.stdout.write(_("(%s)\n") % inst.hint)
         return -1
     except error.ParseError, inst:
         if len(inst.args) > 1:
@@ -116,6 +118,8 @@
             commands.help_(ui, 'shortlist')
     except util.Abort, inst:
         ui.warn(_("abort: %s\n") % inst)
+        if inst.hint:
+            ui.status(_("(%s)\n") % inst.hint)
     except ImportError, inst:
         ui.warn(_("abort: %s!\n") % inst)
         m = str(inst).split()[-1]