# HG changeset patch # User Gregory Szorc # Date 2018-04-12 20:08:33 # Node ID 8cea0d57bf370a0faaaca689974b5e0607aa9849 # Parent b2fa1591fb444a63c4cedce75366013c1ddb81d0 httppeer: handle error response from client reactor With this in place, we're now seeing useful errors when running tests with the new wire protocol enabled! Differential Revision: https://phab.mercurial-scm.org/D3332 diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -763,6 +763,14 @@ class httpv2executor(object): f.set_result(result) del results[request.requestid] + elif action == 'error': + e = error.RepoError(meta['message']) + + if f: + f.set_exception(e) + else: + raise e + else: e = error.ProgrammingError('unhandled action: %s' % action)