diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-04-22 01:35:20 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-04-22 01:35:20 -0400 |
commit | 9bba3f4767c32292cd616512cc492ca416f6adc1 (patch) | |
tree | ca626c29cda8a00891be0e0c78fd73eec161e73c /src/simplewallet | |
parent | Merge pull request #7643 (diff) | |
parent | monero-wallet-cli: improve error message when tx amount is zero (diff) | |
download | monero-9bba3f4767c32292cd616512cc492ca416f6adc1.tar.xz |
Merge pull request #7651
c8ff1d4 monero-wallet-cli: improve error message when tx amount is zero (Elliot Wirrick)
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index da6501183..a7856d60f 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -608,9 +608,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) |