Show More
@@ -292,8 +292,7 b' def _runcatch(req):' | |||||
292 | ui.warn(_("abort: error: %s\n") % reason) |
|
292 | ui.warn(_("abort: error: %s\n") % reason) | |
293 | elif (util.safehasattr(inst, "args") |
|
293 | elif (util.safehasattr(inst, "args") | |
294 | and inst.args and inst.args[0] == errno.EPIPE): |
|
294 | and inst.args and inst.args[0] == errno.EPIPE): | |
295 | if ui.debugflag: |
|
295 | pass | |
296 | ui.warn(_("broken pipe\n")) |
|
|||
297 | elif getattr(inst, "strerror", None): |
|
296 | elif getattr(inst, "strerror", None): | |
298 | if getattr(inst, "filename", None): |
|
297 | if getattr(inst, "filename", None): | |
299 | ui.warn(_("abort: %s: %s\n") % (inst.strerror, inst.filename)) |
|
298 | ui.warn(_("abort: %s: %s\n") % (inst.strerror, inst.filename)) | |
@@ -310,10 +309,7 b' def _runcatch(req):' | |||||
310 | try: |
|
309 | try: | |
311 | ui.warn(_("interrupted!\n")) |
|
310 | ui.warn(_("interrupted!\n")) | |
312 | except IOError as inst: |
|
311 | except IOError as inst: | |
313 |
if inst.errno |
|
312 | if inst.errno != errno.EPIPE: | |
314 | if ui.debugflag: |
|
|||
315 | ui.warn(_("\nbroken pipe\n")) |
|
|||
316 | else: |
|
|||
317 | raise |
|
313 | raise | |
318 | except MemoryError: |
|
314 | except MemoryError: | |
319 | ui.warn(_("abort: out of memory\n")) |
|
315 | ui.warn(_("abort: out of memory\n")) |
General Comments 0
You need to be logged in to leave comments.
Login now