From 9236823bf477093890335d757627f1c7e9a82dc2 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 16 Sep 2017 10:32:12 +0100 Subject: simplewallet: print tx rejection reason where it was missing --- src/simplewallet/simplewallet.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/simplewallet/simplewallet.cpp') 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 &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) { -- cgit v1.2.3