ernie
ernie copied to clipboard
Error response form for native modules
According to the BERT-RPC 1.0 spec error response should take the form of a tuple with two elements: an atom error
and a tuple with five elements with error details, so I've corrected the appropriate code for native modules and tested if it works.
This fix doesn't seem to affect something and works correctly with my BERT-RPC client providing it with the tuple consisting of the two elements: the atom and the tuple. Wireshark shows correct hex-encoded terms while they're being transmitted between interfaces.