aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-12-23 10:40:43 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-12-23 10:40:43 -0500
commit1ed12f9b004b4598213d641d72c5b7c34010e887 (patch)
treed9755cdf43a152553fce8825ee9b3ff03035bb16 /src/wallet/wallet2.cpp
parent91140cc65ad9609c047738e8729e5f960ca1d9c5 (diff)
parenta928cbc20f38cf6fcca80fce32c437d43560c017 (diff)
downloadmonzero-core-1ed12f9b004b4598213d641d72c5b7c34010e887.tar.gz
monzero-core-1ed12f9b004b4598213d641d72c5b7c34010e887.tar.xz
monzero-core-1ed12f9b004b4598213d641d72c5b7c34010e887.zip
Merge pull request #9506
a928cbc wallet2: fix error throw if unable to load cache (tobtoht)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-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 90b573169..8651ebb7a 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);
}