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