diff options
| author | tobtoht <tob@featherwallet.org> | 2024-10-07 00:38:40 +0200 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2024-10-07 00:38:40 +0200 |
| commit | a928cbc20f38cf6fcca80fce32c437d43560c017 (patch) | |
| tree | 8bbd3d766cafdb8cd69df316e52c7059e0d395d2 /src | |
| parent | b089f9ee69924882c5d14dd1a6991deb05d9d1cd (diff) | |
| download | monzero-core-a928cbc20f38cf6fcca80fce32c437d43560c017.tar.gz monzero-core-a928cbc20f38cf6fcca80fce32c437d43560c017.tar.xz monzero-core-a928cbc20f38cf6fcca80fce32c437d43560c017.zip | |
wallet2: fix error throw if unable to load cache
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet2.cpp | 2 |
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); } |
