mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Better error report for failed BitcoindRPCCheck
This commit is contained in:
parent
00c60c7760
commit
cf232e8447
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue