Mercurial > hg > bitcoin
changeset 2832:047722107228 draft
Print wallet load errors (to debug.log)
author | Luke Dashjr <luke-jr+git@utopios.org> |
---|---|
date | Sun, 11 Mar 2012 17:57:44 -0400 |
parents | 94e5029b345f |
children | 8203cfbe1cf7 |
files | src/init.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/init.cpp +++ b/src/init.cpp @@ -398,12 +398,14 @@ else if (nLoadWalletRet == DB_NEED_REWRITE) { strErrors += _("Wallet needed to be rewritten: restart Bitcoin to complete \n"); + printf("%s", strErrors.c_str()); wxMessageBox(strErrors, "Bitcoin", wxOK | wxICON_ERROR); return false; } else strErrors += _("Error loading wallet.dat \n"); } + printf("%s", strErrors.c_str()); printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart); RegisterWallet(pwalletMain);