mirror of
https://github.com/monero-project/monero.git
synced 2026-01-14 13:56:43 -08:00
monero-wallet-cli: improve error message when tx amount is zero
This commit is contained in:
@@ -607,9 +607,14 @@ void simple_wallet::handle_transfer_exception(const std::exception_ptr &e, bool
|
||||
fail_msg_writer() << e.what();
|
||||
warn_of_possible_attack = false;
|
||||
}
|
||||
catch (const tools::error::zero_amount&)
|
||||
{
|
||||
fail_msg_writer() << sw::tr("destination amount is zero");
|
||||
warn_of_possible_attack = false;
|
||||
}
|
||||
catch (const tools::error::zero_destination&)
|
||||
{
|
||||
fail_msg_writer() << sw::tr("one of destinations is zero");
|
||||
fail_msg_writer() << sw::tr("transaction has no destination");
|
||||
warn_of_possible_attack = false;
|
||||
}
|
||||
catch (const tools::error::tx_too_big& e)
|
||||
|
||||
Reference in New Issue
Block a user