Better error report for failed BitcoindRPCCheck

This commit is contained in:
instagibbs 2016-08-16 17:31:27 -04:00 committed by Gregory Sanders
parent 00c60c7760
commit cf232e8447

View file

@ -2099,8 +2099,10 @@ bool BitcoindRPCCheck(bool init)
LogPrintf("ERROR: Invalid parent genesis block hash response via RPC. Contacting wrong parent daemon?");
return false;
}
} catch (...) {
LogPrintf("ERROR: Failure connecting to bitcoind RPC.\n");
} catch (const std::runtime_error& re) {
std::string totalErr = "ERROR: Failure connecting to bitcoind RPC: ";
totalErr += std::string(re.what()) + "\n";
LogPrintf(totalErr.c_str());
return false;
}
}