comparison mercurial/commands.py @ 693:10c0264751da

Be quiet about broken pipes manifest hash: 3163ebe2f15c3a577456cfdcd2b136c3c7cf7378
author mpm@selenic.com
date Thu, 14 Jul 2005 18:41:36 -0800
parents 4315db147f00
children 574869103985
comparison
equal deleted inserted replaced
692:695dd9a491da 693:10c0264751da
1265 if hasattr(inst, "code"): 1265 if hasattr(inst, "code"):
1266 u.warn("abort: %s\n" % inst) 1266 u.warn("abort: %s\n" % inst)
1267 elif hasattr(inst, "reason"): 1267 elif hasattr(inst, "reason"):
1268 u.warn("abort: error %d: %s\n" % (inst.reason[0], inst.reason[1])) 1268 u.warn("abort: error %d: %s\n" % (inst.reason[0], inst.reason[1]))
1269 elif hasattr(inst, "args") and inst[0] == errno.EPIPE: 1269 elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
1270 u.warn("broken pipe\n") 1270 if u.debugflag: u.warn("broken pipe\n")
1271 else: 1271 else:
1272 raise 1272 raise
1273 except OSError, inst: 1273 except OSError, inst:
1274 if hasattr(inst, "filename"): 1274 if hasattr(inst, "filename"):
1275 u.warn("abort: %s: %s\n" % (inst.strerror, inst.filename)) 1275 u.warn("abort: %s: %s\n" % (inst.strerror, inst.filename))