bitpay/node-bitpay-client — pull request #31 by imrehg (2014-07-12 15:25:20+00:00)
Title: Add error handling to examples

The BitPay client library errors are emitted as events back to the
caller. If the caller does not receives and acts on them, the outcome
is a very uninformative message like this:

TypeError: Uncaught, unspecified "error" event

To prevent this, show the error message to the caller, and hopefully
encourage better practice, this patch adds a very simple error handling
code to the examples where it would matter.

Signed-off-by: Gergely Imreh