comparison mercurial/chgserver.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 a17454a189d1
children b56feaa9b520
comparison
equal deleted inserted replaced
45681:a736ab681b78 45682:d2e1dcd4490d
500 dispatch._formatparse(self.ui.warn, inst) 500 dispatch._formatparse(self.ui.warn, inst)
501 self.ui.flush() 501 self.ui.flush()
502 self.cresult.write(b'exit 255') 502 self.cresult.write(b'exit 255')
503 return 503 return
504 except error.Abort as inst: 504 except error.Abort as inst:
505 self.ui.error(_(b"abort: %s\n") % inst) 505 self.ui.error(_(b"abort: %s\n") % inst.message)
506 if inst.hint: 506 if inst.hint:
507 self.ui.error(_(b"(%s)\n") % inst.hint) 507 self.ui.error(_(b"(%s)\n") % inst.hint)
508 self.ui.flush() 508 self.ui.flush()
509 self.cresult.write(b'exit 255') 509 self.cresult.write(b'exit 255')
510 return 510 return