mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 22:27:46 +00:00
simplewallet: print tx rejection reason where it was missing
This commit is contained in:
parent
3dee3301ba
commit
9236823bf4
1 changed files with 3 additions and 0 deletions
|
@ -3474,6 +3474,9 @@ bool simple_wallet::submit_transfer(const std::vector<std::string> &args_)
|
||||||
catch (const tools::error::tx_rejected& e)
|
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();
|
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)
|
catch (const tools::error::tx_sum_overflow& e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue