add method and params to errors from rpc call