Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 773:d77c1031fd17
Hide errno in abort messages
author | mpm@selenic.com |
---|---|
date | Tue, 26 Jul 2005 21:52:40 -0500 |
parents | 0de223012086 |
children | d09975474928 |
line wrap: on
line diff
--- 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: