aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinstagibbs <gsanders87@gmail.com>2016-11-22 12:48:01 -0500
committerinstagibbs <gsanders87@gmail.com>2016-11-22 13:40:57 -0500
commit918b126901d6fd76f8ec49fce69a60d7819d3a57 (patch)
tree35baf97fcf046d8a988746a7b75e1148225e50cc /src
parentac489b24453c59605fa3c3f3940a8b5580936f7a (diff)
fix CreateTransaction error messages
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 2e512fd57f..83ab9051a1 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2238,7 +2238,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
{
if (nValue < 0 || recipient.nAmount < 0)
{
- strFailReason = _("Transaction amounts must be positive");
+ strFailReason = _("Transaction amounts must not be negative");
return false;
}
nValue += recipient.nAmount;
@@ -2246,9 +2246,9 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
if (recipient.fSubtractFeeFromAmount)
nSubtractFeeFromAmount++;
}
- if (vecSend.empty() || nValue < 0)
+ if (vecSend.empty())
{
- strFailReason = _("Transaction amounts must be positive");
+ strFailReason = _("Transaction must have at least one recipient");
return false;
}