mercurial/commands.py
changeset 1325 57220daf40e9
parent 1321 b47f96a178a3
child 1331 cfae1ed2d61f
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2160,6 +2160,8 @@ def dispatch(args):
             u.warn("abort: %s\n" % inst)
         elif hasattr(inst, "reason"):
             u.warn("abort: error: %s\n" % inst.reason[1])
+        elif getattr(inst, "strerror", None):
+            u.warn("abort: %s\n" % inst.strerror)
         elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
             if u.debugflag:
                 u.warn("broken pipe\n")