Merge pull request #9506

a928cbc wallet2: fix error throw if unable to load cache (tobtoht)
This commit is contained in:
luigi1111 2024-12-23 10:40:43 -05:00
commit 1ed12f9b00
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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);
}