wallet2: fix error throw if unable to load cache

This commit is contained in:
tobtoht
2024-12-15 23:49:04 +03:00
committed by wowario
parent 178f454742
commit 3e5fbb4fec
+1 -1
View File
@@ -6152,7 +6152,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);
}