Mercurial > hg > bitcoin
changeset 3300:7b8b31024a6b draft
Revert "Make this error message similar to the others"
This reverts commit dc1e5ad1917bb353aee7ef24aabf13ae3fe2fb80.
The new error message was not correct, as it refers to the total balance, not an account.
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Sun, 12 Aug 2012 21:35:39 +0200 (2012-08-12) |
parents | da7d4d0109a6 |
children | ca2043be9bf6 |
files | src/bitcoinrpc.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1012,7 +1012,7 @@ if (!fCreated) { if (totalAmount + nFeeRequired > pwalletMain->GetBalance()) - throw JSONRPCError(-6, "Account has insufficient funds"); + throw JSONRPCError(-6, "Insufficient funds"); throw JSONRPCError(-4, "Transaction creation failed"); } if (!pwalletMain->CommitTransaction(wtx, keyChange))