Unverified Commit 187ee5e9 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

[types]: allow `data` field in jsonrpc error obj. (#286)

* [types]: allow `data` field in jsonrpc error obj.

* fmt

* revert change to make fail

* remove redundant test

* [types]: bring back `data` and `message` in error.

Basically deducing the error message from server defined error doesn't work
and we should not strip out this information from to user which might be useful.

* remove boiler plate code

* [types]: impl From<ErrorCode> for JsonRpcError

* address grumbles

* remove more boiler plate
parent fb6b34be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment