Print wallet load errors (to debug.log)
This commit is contained in:
parent
4585d828b4
commit
21e875c958
1 changed files with 2 additions and 0 deletions
|
@ -370,12 +370,14 @@ bool AppInit2(int argc, char* argv[])
|
||||||
else if (nLoadWalletRet == DB_NEED_REWRITE)
|
else if (nLoadWalletRet == DB_NEED_REWRITE)
|
||||||
{
|
{
|
||||||
strErrors << _("Wallet needed to be rewritten: restart Bitcoin to complete") << "\n";
|
strErrors << _("Wallet needed to be rewritten: restart Bitcoin to complete") << "\n";
|
||||||
|
printf("%s", strErrors.str().c_str());
|
||||||
wxMessageBox(strErrors.str(), "Bitcoin", wxOK | wxICON_ERROR);
|
wxMessageBox(strErrors.str(), "Bitcoin", wxOK | wxICON_ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
strErrors << _("Error loading wallet.dat") << "\n";
|
strErrors << _("Error loading wallet.dat") << "\n";
|
||||||
}
|
}
|
||||||
|
printf("%s", strErrors.str().c_str());
|
||||||
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
|
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
|
||||||
|
|
||||||
RegisterWallet(pwalletMain);
|
RegisterWallet(pwalletMain);
|
||||||
|
|
Loading…
Reference in a new issue