Mercurial > hg-stable
diff mercurial/wireprotov2server.py @ 37726:0c184ca594bb
wireprotov2: change behavior of error frame
Now that we have a leading CBOR map in command response frames
to indicate overall command result status, we don't need to use
the error response frame to represent command errors. Instead,
we can reserve it for protocol and server level errors. And for the
special case of a command error that occurred after command response
frames were emitted.
The code for error handling still needs a ton of work. But we're
slowly going in the right direction...
Differential Revision: https://phab.mercurial-scm.org/D3386
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 15:36:12 -0700 |
parents | 3ea8323d6f95 |
children | 5cdde6158426 |
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py Sat Apr 14 15:19:36 2018 -0700 +++ b/mercurial/wireprotov2server.py Sat Apr 14 15:36:12 2018 -0700 @@ -311,7 +311,7 @@ command['requestid'], encoded) else: - action, meta = reactor.onapplicationerror( + action, meta = reactor.onservererror( _('unhandled response type from wire proto command')) if action == 'sendframes':