Show More
@@ -311,16 +311,15 b' class RemoteError(Abort):' | |||||
311 | class OutOfBandError(RemoteError): |
|
311 | class OutOfBandError(RemoteError): | |
312 | """Exception raised when a remote repo reports failure""" |
|
312 | """Exception raised when a remote repo reports failure""" | |
313 |
|
313 | |||
314 |
def __init__(self, |
|
314 | def __init__(self, message=None, hint=None): | |
315 | from .i18n import _ |
|
315 | from .i18n import _ | |
316 |
|
316 | |||
317 |
if message |
|
317 | if message: | |
318 | message = _(b"remote error:\n%s") % b''.join(messages) |
|
|||
319 | # Abort.format() adds a trailing newline |
|
318 | # Abort.format() adds a trailing newline | |
320 | message = message.rstrip(b'\n') |
|
319 | message = _(b"remote error:\n%s") % message.rstrip(b'\n') | |
321 | else: |
|
320 | else: | |
322 | message = _(b"remote error") |
|
321 | message = _(b"remote error") | |
323 |
super(OutOfBandError, self).__init__(message, |
|
322 | super(OutOfBandError, self).__init__(message, hint=hint) | |
324 |
|
323 | |||
325 |
|
324 | |||
326 | class ParseError(Abort): |
|
325 | class ParseError(Abort): |
General Comments 0
You need to be logged in to leave comments.
Login now