countable/node-dogecoin — pull request #2 by brotchie (2014-01-29 12:13:20+00:00)
Title: Added dogecoind error code as a property on the Error instance when an error occurs

I'm currently writing a system that needs to unlock a wallet when the RPC response indicates an unlock is required. The easiest way I found to do this is to observe the error code when a request fails. Perhaps we could expose all the error object's fields on the Error instance.