aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-15 00:47:28 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-15 00:47:28 +0200
commit0ddf3b6c758df71eb3711dab826b0cd2f34dfc29 (patch)
treecbb786d5b6b30ff759d4d9af72e68c8f32a1205b /src/wallet/wallet2.cpp
parentMerge pull request #2813 (diff)
parentMore missed readline dependencies thru scoped_message_writer (diff)
downloadmonero-0ddf3b6c758df71eb3711dab826b0cd2f34dfc29.tar.xz
Merge pull request #2814
987eb662 More missed readline dependencies thru scoped_message_writer (Howard Chu)
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 1 insertions, 3 deletions
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<tools::wallet2> 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);
}