Browse Source

Merge pull request #1660 from fanquake/master

Change this error message to be similar to the others
miguelfreitas
Wladimir J. van der Laan 12 years ago
parent
commit
c995995eb8
  1. 2
      src/bitcoinrpc.cpp

2
src/bitcoinrpc.cpp

@ -1012,7 +1012,7 @@ Value sendmany(const Array& params, bool fHelp)
if (!fCreated) if (!fCreated)
{ {
if (totalAmount + nFeeRequired > pwalletMain->GetBalance()) if (totalAmount + nFeeRequired > pwalletMain->GetBalance())
throw JSONRPCError(-6, "Insufficient funds"); throw JSONRPCError(-6, "Account has insufficient funds");
throw JSONRPCError(-4, "Transaction creation failed"); throw JSONRPCError(-4, "Transaction creation failed");
} }
if (!pwalletMain->CommitTransaction(wtx, keyChange)) if (!pwalletMain->CommitTransaction(wtx, keyChange))

Loading…
Cancel
Save