comparison mercurial/commandserver.py @ 45682:d2e1dcd4490d

errors: name arguments to Abort constructor Differential Revision: https://phab.mercurial-scm.org/D9179
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 08 Oct 2020 13:37:31 -0700
parents f43bc4ce0d69
children 89a2afe31e82
comparison
equal deleted inserted replaced
45681:a736ab681b78 45682:d2e1dcd4490d
498 try: 498 try:
499 sv.serve() 499 sv.serve()
500 # handle exceptions that may be raised by command server. most of 500 # handle exceptions that may be raised by command server. most of
501 # known exceptions are caught by dispatch. 501 # known exceptions are caught by dispatch.
502 except error.Abort as inst: 502 except error.Abort as inst:
503 ui.error(_(b'abort: %s\n') % inst) 503 ui.error(_(b'abort: %s\n') % inst.message)
504 except IOError as inst: 504 except IOError as inst:
505 if inst.errno != errno.EPIPE: 505 if inst.errno != errno.EPIPE:
506 raise 506 raise
507 except KeyboardInterrupt: 507 except KeyboardInterrupt:
508 pass 508 pass