Browse Source

Print wallet load errors (to debug.log)

0.8
Luke Dashjr 13 years ago
parent
commit
21e875c958
  1. 2
      src/init.cpp

2
src/init.cpp

@ -370,12 +370,14 @@ bool AppInit2(int argc, char* argv[]) @@ -370,12 +370,14 @@ bool AppInit2(int argc, char* argv[])
else if (nLoadWalletRet == DB_NEED_REWRITE)
{
strErrors << _("Wallet needed to be rewritten: restart Bitcoin to complete") << "\n";
printf("%s", strErrors.str().c_str());
wxMessageBox(strErrors.str(), "Bitcoin", wxOK | wxICON_ERROR);
return false;
}
else
strErrors << _("Error loading wallet.dat") << "\n";
}
printf("%s", strErrors.str().c_str());
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
RegisterWallet(pwalletMain);

Loading…
Cancel
Save