aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-28 18:21:53 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-28 18:22:29 +0000
commit316ab7b56ed2b4c3f8eb114f6e291cf9e91f8c00 (patch)
tree0721a0ce20d5f7ed0249b618b4a5000f5f7c032d /src/wallet/wallet2.cpp
parentMerge pull request #6174 (diff)
downloadmonero-316ab7b56ed2b4c3f8eb114f6e291cf9e91f8c00.tar.xz
wallet2: better error when restoring a wallet with the wrong keys
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index e60c6b7e1..8ecfdeca2 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -4236,7 +4236,7 @@ bool wallet2::load_keys(const std::string& keys_file_name, const epee::wipeable_
r = r && hwdev.verify_keys(keys.m_view_secret_key, keys.m_account_address.m_view_public_key);
if(!m_watch_only && !m_multisig && hwdev.device_protocol() != hw::device::PROTOCOL_COLD)
r = r && hwdev.verify_keys(keys.m_spend_secret_key, keys.m_account_address.m_spend_public_key);
- THROW_WALLET_EXCEPTION_IF(!r, error::invalid_password);
+ THROW_WALLET_EXCEPTION_IF(!r, error::wallet_files_doesnt_correspond, m_keys_file, m_wallet_file);
if (r)
setup_keys(password);