aboutsummaryrefslogtreecommitdiff
path: root/src/rpc.cpp
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-08-11 13:18:37 +0200
committerMatt Corallo <matt@bluematt.me>2011-08-11 19:41:21 +0200
commit8acb491eef2044443b34e867b91ddb70244cefcf (patch)
treed2e3482323963ca44c8d3a74ff350a7e4707b482 /src/rpc.cpp
parent2f8f51d1e4e5285fdd5724f7264d32d08a42f7e9 (diff)
Fix incorrect RPC error messages
Diffstat (limited to 'src/rpc.cpp')
-rw-r--r--src/rpc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp
index d62a0d9ac3..dd3430d42f 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -552,7 +552,7 @@ Value sendtoaddress(const Array& params, bool fHelp)
CRITICAL_BLOCK(pwalletMain->cs_vMasterKey)
{
if(pwalletMain->IsLocked())
- throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect.");
+ throw JSONRPCError(-13, "Error: Please enter the wallet passphrase with walletpassphrase first.");
string strError = pwalletMain->SendMoneyToBitcoinAddress(address, nAmount, wtx);
if (strError != "")
@@ -827,7 +827,7 @@ Value sendfrom(const Array& params, bool fHelp)
CRITICAL_BLOCK(pwalletMain->cs_vMasterKey)
{
if(pwalletMain->IsLocked())
- throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect.");
+ throw JSONRPCError(-13, "Error: Please enter the wallet passphrase with walletpassphrase first.");
// Check funds
int64 nBalance = GetAccountBalance(strAccount, nMinDepth);
@@ -894,7 +894,7 @@ Value sendmany(const Array& params, bool fHelp)
CRITICAL_BLOCK(pwalletMain->cs_vMasterKey)
{
if(pwalletMain->IsLocked())
- throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect.");
+ throw JSONRPCError(-13, "Error: Please enter the wallet passphrase with walletpassphrase first.");
// Check funds
int64 nBalance = GetAccountBalance(strAccount, nMinDepth);