koorchik / node-mole-rpc

Transport agnostic spec compliant JSON RPC client and server
MIT License
63 stars 13 forks source link

_makeErrorObject: implement passing custom data field #7

Closed nicola-lunghi closed 4 years ago

nicola-lunghi commented 4 years ago

Here I implement passing extra data to the error object to display more information Could be for example a custom message to the user

nicola-lunghi commented 4 years ago

sorry there was a syntax error :-)

koorchik commented 4 years ago

Fixed in version 1.0 - https://www.npmjs.com/package/mole-rpc#error-handling . Let me know whether it works for your case