Hide errno in abort messages
authormpm@selenic.com
Tue, 26 Jul 2005 21:52:40 -0500
changeset 773 d77c1031fd17
parent 772 f05deda58457
child 774 6592c4f5cd4f
Hide errno in abort messages
mercurial/commands.py
--- a/mercurial/commands.py	Mon Jul 25 12:02:29 2005 -0500
+++ b/mercurial/commands.py	Tue Jul 26 21:52:40 2005 -0500
@@ -1346,7 +1346,7 @@
         if hasattr(inst, "code"):
             u.warn("abort: %s\n" % inst)
         elif hasattr(inst, "reason"):
-            u.warn("abort: error %d: %s\n" % (inst.reason[0], inst.reason[1]))
+            u.warn("abort: error: %s\n" % inst.reason[1])
         elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
             if u.debugflag: u.warn("broken pipe\n")
         else: