git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4585d82
)
Print wallet load errors (to debug.log)
author
Luke Dashjr
<luke-jr+git@utopios.org>
Sun, 11 Mar 2012 21:57:44 +0000 (17:57 -0400)
committer
Luke Dashjr
<luke-jr+git@utopios.org>
Sun, 11 Mar 2012 21:57:47 +0000 (17:57 -0400)
src/init.cpp
patch
|
blob
|
history
diff --git
a/src/init.cpp
b/src/init.cpp
index
8fe0f90
..
a5db20b
100644
(file)
--- 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);