Show More
@@ -304,7 +304,11 b' class ResponseExpected(Abort):' | |||||
304 | Abort.__init__(self, _(b'response expected')) |
|
304 | Abort.__init__(self, _(b'response expected')) | |
305 |
|
305 | |||
306 |
|
306 | |||
307 |
class |
|
307 | class RemoteError(Abort): | |
|
308 | """Exception raised when interacting with a remote repo fails""" | |||
|
309 | ||||
|
310 | ||||
|
311 | class OutOfBandError(RemoteError): | |||
308 | """Exception raised when a remote repo reports failure""" |
|
312 | """Exception raised when a remote repo reports failure""" | |
309 |
|
313 | |||
310 | def __init__(self, *messages, **kwargs): |
|
314 | def __init__(self, *messages, **kwargs): |
@@ -222,7 +222,7 b' def callcatch(ui, func):' | |||||
222 | detailed_exit_code = 30 |
|
222 | detailed_exit_code = 30 | |
223 | elif isinstance(inst, error.HookAbort): |
|
223 | elif isinstance(inst, error.HookAbort): | |
224 | detailed_exit_code = 40 |
|
224 | detailed_exit_code = 40 | |
225 |
elif isinstance(inst, error. |
|
225 | elif isinstance(inst, error.RemoteError): | |
226 | detailed_exit_code = 100 |
|
226 | detailed_exit_code = 100 | |
227 | elif isinstance(inst, error.SecurityError): |
|
227 | elif isinstance(inst, error.SecurityError): | |
228 | detailed_exit_code = 150 |
|
228 | detailed_exit_code = 150 |
General Comments 0
You need to be logged in to leave comments.
Login now