equal
deleted
inserted
replaced
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 |