wallet2: fix error throw if unable to load cache

This commit is contained in:
tobtoht 2024-10-07 00:38:40 +02:00
parent b089f9ee69
commit a928cbc20f
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472

View File

@ -6141,7 +6141,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
bool r = true; bool r = true;
if (use_fs) 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); THROW_WALLET_EXCEPTION_IF(!r, error::file_read_error, m_wallet_file);
} }