Skip to content

Commit

Permalink
wallet2: throw error if unable to load cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Oct 6, 2024
1 parent ed8e0d1 commit 55a6b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6523,7 +6523,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);
}

Expand Down

0 comments on commit 55a6b00

Please sign in to comment.