Skip to content

Commit

Permalink
wallet: corruption, tell user where/how to find more information abou…
Browse files Browse the repository at this point in the history
…t the cause
  • Loading branch information
furszy committed Sep 6, 2022
1 parent a8dc8cc commit 12b0169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wallet/wallet.cpp
Expand Up @@ -2794,7 +2794,9 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
DBErrors nLoadWalletRet = walletInstance->LoadWallet();
if (nLoadWalletRet != DBErrors::LOAD_OK) {
if (nLoadWalletRet == DBErrors::CORRUPT) {
error = strprintf(_("Error loading %s: Wallet corrupted"), walletFile);
error = strprintf(_("Error loading %s: Wallet corrupted\n\n"
"For more information, please enable the wallet logging level "
"and open the log:\n%s"), walletFile, PathToString(gArgs.GetDataDirNet() / "debug.log"));
return nullptr;
}
else if (nLoadWalletRet == DBErrors::NONCRITICAL_ERROR)
Expand Down

0 comments on commit 12b0169

Please sign in to comment.