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