mercurial/commands.py
changeset 836 1fe3b14c7044
parent 826 16700cdd9055
parent 832 b65773f7db41
child 839 9c918287d10b
equal deleted inserted replaced
827:a61728b58dc0 836:1fe3b14c7044
  1417     except hg.RepoError, inst:
  1417     except hg.RepoError, inst:
  1418         u.warn("abort: ", inst, "!\n")
  1418         u.warn("abort: ", inst, "!\n")
  1419     except SignalInterrupt:
  1419     except SignalInterrupt:
  1420         u.warn("killed!\n")
  1420         u.warn("killed!\n")
  1421     except KeyboardInterrupt:
  1421     except KeyboardInterrupt:
  1422         u.warn("interrupted!\n")
  1422         try:
       
  1423             u.warn("interrupted!\n")
       
  1424         except IOError, inst:
       
  1425             if inst.errno == errno.EPIPE:
       
  1426                 if u.debugflag:
       
  1427                     u.warn("\nbroken pipe\n")
       
  1428             else:
       
  1429                 raise
  1423     except IOError, inst:
  1430     except IOError, inst:
  1424         if hasattr(inst, "code"):
  1431         if hasattr(inst, "code"):
  1425             u.warn("abort: %s\n" % inst)
  1432             u.warn("abort: %s\n" % inst)
  1426         elif hasattr(inst, "reason"):
  1433         elif hasattr(inst, "reason"):
  1427             u.warn("abort: error: %s\n" % inst.reason[1])
  1434             u.warn("abort: error: %s\n" % inst.reason[1])