From c23b6fd6887707c18d8a8e9c82047413d038b4b6 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sun, 12 Aug 2012 21:35:39 +0200 Subject: [PATCH] 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. --- src/bitcoinrpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 23ec4ffff..2e3f8a8e5 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1012,7 +1012,7 @@ Value sendmany(const Array& params, bool fHelp) 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))