Show More
@@ -3277,7 +3277,11 b' def dispatch(args):' | |||||
3277 | if hasattr(inst, "code"): |
|
3277 | if hasattr(inst, "code"): | |
3278 | u.warn(_("abort: %s\n") % inst) |
|
3278 | u.warn(_("abort: %s\n") % inst) | |
3279 | elif hasattr(inst, "reason"): |
|
3279 | elif hasattr(inst, "reason"): | |
3280 | u.warn(_("abort: error: %s\n") % inst.reason[1]) |
|
3280 | try: # usually it is in the form (errno, strerror) | |
|
3281 | reason = inst.reason.args[1] | |||
|
3282 | except: # it might be anything, for example a string | |||
|
3283 | reason = inst.reason | |||
|
3284 | u.warn(_("abort: error: %s\n") % reason) | |||
3281 | elif hasattr(inst, "args") and inst[0] == errno.EPIPE: |
|
3285 | elif hasattr(inst, "args") and inst[0] == errno.EPIPE: | |
3282 | if u.debugflag: |
|
3286 | if u.debugflag: | |
3283 | u.warn(_("broken pipe\n")) |
|
3287 | u.warn(_("broken pipe\n")) |
General Comments 0
You need to be logged in to leave comments.
Login now