doc: rpc-mining: Clarify error messages #15685
pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:1903-docMining changing 1 files +2 −2-
MarcoFalke commented at 1:02 pm on March 28, 2019: memberFixes #13274
-
DrahtBot added the label Docs on Mar 28, 2019
-
DrahtBot added the label RPC/REST/ZMQ on Mar 28, 2019
-
practicalswift commented at 1:07 pm on March 28, 2019: contributorACK fa642d770e4606e005fc41e8155ed48d2a9c5532
-
in src/rpc/mining.cpp:447 in fa642d770e outdated
443@@ -444,10 +444,10 @@ static UniValue getblocktemplate(const JSONRPCRequest& request) 444 throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); 445 446 if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0) 447- throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin is not connected!"); 448+ throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin Core is not connected!");
luke-jr commented at 1:14 pm on March 28, 2019:Should be usingPACKAGE_NAME
-
MarcoFalke removed the label Docs on Mar 28, 2019
-
MarcoFalke removed the label RPC/REST/ZMQ on Mar 28, 2019
-
DrahtBot added the label Docs on Mar 28, 2019
-
DrahtBot added the label Mining on Mar 28, 2019
-
DrahtBot added the label RPC/REST/ZMQ on Mar 28, 2019
-
MarcoFalke force-pushed on Mar 28, 2019
-
MarcoFalke commented at 1:27 pm on March 28, 2019: member
Using PACKAGE_NAME:
-
in src/rpc/mining.cpp:447 in fa784ee74e outdated
443@@ -444,10 +444,10 @@ static UniValue getblocktemplate(const JSONRPCRequest& request) 444 throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); 445 446 if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0) 447- throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin is not connected!"); 448+ throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, std::string{PACKAGE_NAME} + " is not connected!");
luke-jr commented at 1:31 pm on March 28, 2019:Pretty sure you could do just:
0 throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, PACKAGE_NAME " is not connected!");
but this works too. 
MarcoFalke commented at 1:59 pm on March 28, 2019:Used this for brevity -
doc: rpc-mining: Clarify error messages fa292adce9
-
MarcoFalke force-pushed on Mar 28, 2019
-
DrahtBot commented at 1:40 pm on March 28, 2019: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #15606 ([experimental] UTXO snapshots by jamesob)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
luke-jr approved
-
fanquake commented at 2:44 pm on April 3, 2019: member
tACK fa292ad
-
MarcoFalke referenced this in commit ba54342c9d on Apr 3, 2019
-
MarcoFalke merged this on Apr 3, 2019
-
MarcoFalke closed this on Apr 3, 2019
-
MarcoFalke deleted the branch on Apr 3, 2019
-
vijaydasmp referenced this in commit 8dfd53f942 on Oct 5, 2021
-
vijaydasmp referenced this in commit 1fcb154575 on Oct 12, 2021
-
vijaydasmp referenced this in commit 3c37a0751e on Oct 14, 2021
-
vijaydasmp referenced this in commit 685e458821 on Oct 14, 2021
-
vijaydasmp referenced this in commit 5df5656e01 on Oct 16, 2021
-
PastaPastaPasta referenced this in commit 6e32a464f5 on Oct 21, 2021
-
pravblockc referenced this in commit d5e042d53c on Nov 18, 2021
-
DrahtBot locked this on Dec 16, 2021