aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorElliot Wirrick <wirrickelliot@gmail.com>2021-04-06 06:29:06 -0400
committerElliot Wirrick <wirrickelliot@gmail.com>2021-04-07 10:10:16 -0400
commitc8ff1d4d2380a70cdd804ba2b70a2988ac726b84 (patch)
treee7c6c816319db81101e5e6ef88a5fd7df0064074 /src/simplewallet/simplewallet.cpp
parentMerge pull request #7387 (diff)
downloadmonero-c8ff1d4d2380a70cdd804ba2b70a2988ac726b84.tar.xz
monero-wallet-cli: improve error message when tx amount is zero
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 2ae091c7e..a6aca07a7 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -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)