Revert "Make this error message similar to the others"

This reverts commit dc1e5ad191.

The new error message was not correct, as it refers to the total balance, not an account.
This commit is contained in:
Wladimir J. van der Laan 2012-08-12 21:35:39 +02:00
parent 198947c19f
commit c23b6fd688
1 changed files with 1 additions and 1 deletions

View File

@ -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))