Closed laroque closed 9 years ago
Okay, wire-protocol decision made, it is going to be its own field. There isn't an obvious way to name it in a consistent way. retmsg is probably closest but I think I prefer something more spelled out
return-msg
After slightly more discussion on Slack, return_msg
to be more consistent with other uses of the underscore.
Okay, in the case of a reply message, if the payload is not a dict, the value is dumped into payload.values[
There may be times when a return code indicates a warning and so a return-msg is warranted, but a valid result is also present. As such, a 'return-msg' field should be used. This being the case, all exceptions/errors should put their message into that field for consistency. We'll need to update the wire protocol to reflect these. I should also abstract away the payload formatting to reflect our standards (and this too should be explicit in the wire protocol).