aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-16 10:32:12 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-16 10:33:42 +0100
commit9236823bf477093890335d757627f1c7e9a82dc2 (patch)
tree22f9215c4501bd10ce42e210b17df49c1817bd1c
parentcore_rpc_server: print tx rejection reason at L0 too (diff)
downloadmonero-9236823bf477093890335d757627f1c7e9a82dc2.tar.xz
simplewallet: print tx rejection reason where it was missing
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 857e2af6e..fea97adc3 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -3474,6 +3474,9 @@ bool simple_wallet::submit_transfer(const std::vector<std::string> &args_)
catch (const tools::error::tx_rejected& e)
{
fail_msg_writer() << (boost::format(tr("transaction %s was rejected by daemon with status: ")) % get_transaction_hash(e.tx())) << e.status();
+ std::string reason = e.reason();
+ if (!reason.empty())
+ fail_msg_writer() << tr("Reason: ") << reason;
}
catch (const tools::error::tx_sum_overflow& e)
{