aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2012-03-18 20:11:09 -0700
committerGregory Maxwell <[email protected]>2012-03-18 20:11:09 -0700
commit0b99d1b574f33a67c8bfae0a149ef70346d4a114 (patch)
tree41318335fbde4e7a8696471b697b4b240f8f89eb /src/init.cpp
parentMerge pull request #942 from Diapolo/master (diff)
parentPrint more diagnostic info for the various DB_CORRUPT conditions (diff)
downloaddiscoin-0b99d1b574f33a67c8bfae0a149ef70346d4a114.tar.xz
discoin-0b99d1b574f33a67c8bfae0a149ef70346d4a114.zip
Merge pull request #931 from luke-jr/dbg_loaderr
Wallet loading diagnostic prints to debug.log
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 8fe0f90b1..a5db20b90 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);