mercurial/dispatch.py
changeset 6993 b9d012ce8578
parent 6217 fe8dbbe9520d
child 6998 ddfcefab8b97
equal deleted inserted replaced
6990:ca6103c5eefd 6993:b9d012ce8578
    88                 if ui.debugflag:
    88                 if ui.debugflag:
    89                     ui.warn(_("\nbroken pipe\n"))
    89                     ui.warn(_("\nbroken pipe\n"))
    90             else:
    90             else:
    91                 raise
    91                 raise
    92     except socket.error, inst:
    92     except socket.error, inst:
    93         ui.warn(_("abort: %s\n") % inst[1])
    93         ui.warn(_("abort: %s\n") % inst[-1])
    94     except IOError, inst:
    94     except IOError, inst:
    95         if hasattr(inst, "code"):
    95         if hasattr(inst, "code"):
    96             ui.warn(_("abort: %s\n") % inst)
    96             ui.warn(_("abort: %s\n") % inst)
    97         elif hasattr(inst, "reason"):
    97         elif hasattr(inst, "reason"):
    98             try: # usually it is in the form (errno, strerror)
    98             try: # usually it is in the form (errno, strerror)