mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge c407caa297 into merged_master (Bitcoin PR bitcoin/bitcoin#29687)
This commit is contained in:
commit
8b9fcbd78b
1 changed files with 4 additions and 1 deletions
|
|
@ -836,7 +836,10 @@ static UniValue CallRPC(BaseRequestHandler* rh, const std::string& strMethod, co
|
|||
if (response.error != -1) {
|
||||
responseErrorMessage = strprintf(" (error code %d - \"%s\")", response.error, http_errorstring(response.error));
|
||||
}
|
||||
throw CConnectionFailed(strprintf("Could not connect to the server %s:%d%s\n\nMake sure the daemon server is running and that you are connecting to the correct RPC port.", host, port, responseErrorMessage));
|
||||
throw CConnectionFailed(strprintf("Could not connect to the server %s:%d%s\n\n"
|
||||
"Make sure the daemon server is running and that you are connecting to the correct RPC port.\n"
|
||||
"Use \"bitcoin-cli -help\" for more info.",
|
||||
host, port, responseErrorMessage));
|
||||
} else if (response.status == HTTP_UNAUTHORIZED) {
|
||||
if (failedToGetAuthCookie) {
|
||||
throw std::runtime_error(strprintf(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue