Skip to content

Commit fa292ad

Browse files
author
MarcoFalke
committed
doc: rpc-mining: Clarify error messages
1 parent 656a15e commit fa292ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/mining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,10 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
444444
throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled");
445445

446446
if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
447-
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin is not connected!");
447+
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, PACKAGE_NAME " is not connected!");
448448

449449
if (IsInitialBlockDownload())
450-
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Bitcoin is downloading blocks...");
450+
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, PACKAGE_NAME " is in initial sync and waiting for blocks...");
451451

452452
static unsigned int nTransactionsUpdatedLast;
453453

0 commit comments

Comments
 (0)