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-19 12:51:24 -0400 |
commit | 00d832756cd1c4574774497dc1232101bea5db96 (patch) | |
tree | f1e15d16044f19eac507474d97b6bf466008a013 /src/init.cpp | |
parent | 91aadbdacf9a3111da76eb831ea36d6827e1d6fc (diff) | |
download | bitcoin-00d832756cd1c4574774497dc1232101bea5db96.tar.xz |
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 079e67b936..2dccc81bf5 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -398,12 +398,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.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); |