This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2peer: properly format errors
ClosedPublic

Authored by indygreg on Aug 31 2018, 6:57 PM.

Details

Summary

formatrichmessage() expects an iterable containing dicts with
well-defined keys. We were passing in something else. This caused
an exception.

Change the code to call formatrichmessage() with the proper argument.

And add a TODO to potentially emit the proper data structure from
the server in the first place.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Aug 31 2018, 6:57 PM
indygreg updated this revision to Diff 10790.Sep 5 2018, 12:20 PM
This revision was automatically updated to reflect the committed changes.