diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2012-03-11 17:57:44 -0400 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-03-11 17:57:47 -0400 |
commit | 21e875c9586ac98c8de79bfa75c5731ee4c62f3d (patch) | |
tree | f6d8e8816db6fdda0f943c1cac4ee210eadce2e0 /src/init.cpp | |
parent | 4585d828b490f826cf863353d1cdf41ec4cb0724 (diff) |
Print wallet load errors (to debug.log)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 8fe0f90b19..a5db20b908 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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); |