aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 0fd8de08c4..ba98600141 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1427,12 +1427,15 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
std::string warningString;
std::string errorString;
pwalletMain = CWallet::InitLoadWallet(fDisableWallet, strWalletFile, warningString, errorString);
- if (!pwalletMain)
- return false;
if (!warningString.empty())
InitWarning(warningString);
if (!errorString.empty())
+ {
+ LogPrintf("%s", errorString);
return InitError(errorString);
+ }
+ if (!pwalletMain)
+ return false;
}
#else // ENABLE_WALLET
LogPrintf("No wallet support compiled in!\n");