comparison mercurial/bundle2.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 10284ce3d5ed
children 89a2afe31e82
comparison
equal deleted inserted replaced
45681:a736ab681b78 45682:d2e1dcd4490d
2087 try: 2087 try:
2088 real_part.validate() 2088 real_part.validate()
2089 except error.Abort as e: 2089 except error.Abort as e:
2090 raise error.Abort( 2090 raise error.Abort(
2091 _(b'bundle at %s is corrupted:\n%s') 2091 _(b'bundle at %s is corrupted:\n%s')
2092 % (util.hidepassword(raw_url), bytes(e)) 2092 % (util.hidepassword(raw_url), e.message)
2093 ) 2093 )
2094 assert not inpart.read() 2094 assert not inpart.read()
2095 2095
2096 2096
2097 @parthandler(b'reply:changegroup', (b'return', b'in-reply-to')) 2097 @parthandler(b'reply:changegroup', (b'return', b'in-reply-to'))