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, 2019MarcoFalke removed the label RPC/REST/ZMQ on Mar 28, 2019DrahtBot added the label Docs on Mar 28, 2019DrahtBot added the label Mining on Mar 28, 2019DrahtBot added the label RPC/REST/ZMQ on Mar 28, 2019MarcoFalke force-pushed on Mar 28, 2019MarcoFalke commented at 1:27 pm on March 28, 2019: memberUsing 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 brevitydoc: rpc-mining: Clarify error messages fa292adce9MarcoFalke force-pushed on Mar 28, 2019DrahtBot commented at 1:40 pm on March 28, 2019: memberThe 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 approvedfanquake commented at 2:44 pm on April 3, 2019: membertACK fa292ad
MarcoFalke referenced this in commit ba54342c9d on Apr 3, 2019MarcoFalke merged this on Apr 3, 2019MarcoFalke closed this on Apr 3, 2019
MarcoFalke deleted the branch on Apr 3, 2019vijaydasmp referenced this in commit 8dfd53f942 on Oct 5, 2021vijaydasmp referenced this in commit 1fcb154575 on Oct 12, 2021vijaydasmp referenced this in commit 3c37a0751e on Oct 14, 2021vijaydasmp referenced this in commit 685e458821 on Oct 14, 2021vijaydasmp referenced this in commit 5df5656e01 on Oct 16, 2021PastaPastaPasta referenced this in commit 6e32a464f5 on Oct 21, 2021pravblockc referenced this in commit d5e042d53c on Nov 18, 2021DrahtBot locked this on Dec 16, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me