From 9459f33178beddb1b89d8654aa143809ef978d64 Mon Sep 17 00:00:00 2001 From: kenshi84 Date: Wed, 8 Feb 2017 23:04:48 +0900 Subject: simplewallet: print error when address is wrong --- src/simplewallet/simplewallet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index a8f1d177f..15f2e8ab1 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -2175,7 +2175,10 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vectortestnet(), local_args[i])) + { + fail_msg_writer() << tr("failed to parse address"); return true; + } if (has_payment_id) { @@ -2670,7 +2673,10 @@ bool simple_wallet::sweep_all(const std::vector &args_) crypto::hash8 new_payment_id; cryptonote::account_public_address address; if (!cryptonote::get_account_address_from_str_or_url(address, has_payment_id, new_payment_id, m_wallet->testnet(), local_args[0])) + { + fail_msg_writer() << tr("failed to parse address"); return true; + } if (has_payment_id) { -- cgit v1.2.3