• Niklas Adolfsson's avatar
    [types]: allow `data` field in jsonrpc error obj. (#286) · 187ee5e9
    Niklas Adolfsson authored
    * [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
    187ee5e9