aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2024-10-07 00:38:40 +0200
committertobtoht <tob@featherwallet.org>2024-10-07 00:38:40 +0200
commita928cbc20f38cf6fcca80fce32c437d43560c017 (patch)
tree8bbd3d766cafdb8cd69df316e52c7059e0d395d2
parentb089f9ee69924882c5d14dd1a6991deb05d9d1cd (diff)
downloadmonzero-core-a928cbc20f38cf6fcca80fce32c437d43560c017.tar.gz
monzero-core-a928cbc20f38cf6fcca80fce32c437d43560c017.tar.xz
monzero-core-a928cbc20f38cf6fcca80fce32c437d43560c017.zip
wallet2: fix error throw if unable to load cache
-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 ad8c36190..924cacb95 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -6141,7 +6141,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
bool r = true;
if (use_fs)
{
- load_from_file(m_wallet_file, cache_file_buf, std::numeric_limits<size_t>::max());
+ r = load_from_file(m_wallet_file, cache_file_buf, std::numeric_limits<size_t>::max());
THROW_WALLET_EXCEPTION_IF(!r, error::file_read_error, m_wallet_file);
}