tokenly / xchain

A public web service for BTC and XCP transactions
5 stars 7 forks source link

Return more specific errors to the client #14

Open deweller opened 9 years ago

deweller commented 9 years ago

When things like this happen:

Insufficient BTC at address 1xxxxxxxxxxxx. (Need approximately 0.0001047 BTC.) To spend unconfirmed coins, use the flag `--unconfirmed`. (Unconfirmed coins cannot be spent from multi\\u2010sig addresses.)

return the error to the client rather than just a generic failure error.