mercurial/commands.py
changeset 1325 57220daf40e9
parent 1321 b47f96a178a3
child 1331 cfae1ed2d61f
equal deleted inserted replaced
1323:60200b3fc839 1325:57220daf40e9
  2158     except IOError, inst:
  2158     except IOError, inst:
  2159         if hasattr(inst, "code"):
  2159         if hasattr(inst, "code"):
  2160             u.warn("abort: %s\n" % inst)
  2160             u.warn("abort: %s\n" % inst)
  2161         elif hasattr(inst, "reason"):
  2161         elif hasattr(inst, "reason"):
  2162             u.warn("abort: error: %s\n" % inst.reason[1])
  2162             u.warn("abort: error: %s\n" % inst.reason[1])
       
  2163         elif getattr(inst, "strerror", None):
       
  2164             u.warn("abort: %s\n" % inst.strerror)
  2163         elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
  2165         elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
  2164             if u.debugflag:
  2166             if u.debugflag:
  2165                 u.warn("broken pipe\n")
  2167                 u.warn("broken pipe\n")
  2166         else:
  2168         else:
  2167             raise
  2169             raise