From 987eb662bfad092ce812041808d4547889edf562 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 14 Nov 2017 22:33:27 +0000 Subject: More missed readline dependencies thru scoped_message_writer --- src/wallet/wallet2.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/wallet/wallet2.cpp') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index c6db45dc9..59c184b51 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -59,7 +59,6 @@ using namespace epee; #include "rapidjson/stringbuffer.h" #include "common/json_util.h" #include "common/base58.h" -#include "common/scoped_message_writer.h" #include "ringct/rctSigs.h" extern "C" @@ -374,8 +373,7 @@ std::unique_ptr generate_from_json(const std::string& json_file, } else { - tools::fail_msg_writer() << tools::wallet2::tr("Address must be specified in order to create watch-only wallet"); - return false; + THROW_WALLET_EXCEPTION(tools::error::wallet_internal_error, tools::wallet2::tr("Address must be specified in order to create watch-only wallet")); } wallet->generate(field_filename, field_password, address, viewkey); } -- cgit v1.2.3