connect-jsonrpc icon indicating copy to clipboard operation
connect-jsonrpc copied to clipboard

add support for error.data

Open nakedible opened this issue 13 years ago • 0 comments

The JSON-RPC 2.0 specification allows for an optional "data" element in errors. Currently there is no way to set this data element from anywhere. A simple solution is to just put "err.data" in the error object if it is present in the exception thrown. One-liner change.

Thank you in advance :-)

nakedible avatar Nov 25 '11 08:11 nakedible