# HG changeset patch # User mpm@selenic.com # Date 1122432760 18000 # Node ID d77c1031fd179483d647ef3fde7d975a4f0fbd5c # Parent f05deda58457defb3490dbf4d7be0b0a1d723636 Hide errno in abort messages diff -r f05deda58457 -r d77c1031fd17 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: