diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-08-11 00:01:53 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2020-08-11 14:04:02 +0200 |
commit | a51d0ad2de89b9757d158df95ddeba2bfcb23935 (patch) | |
tree | c7dde24190e668e26b2e86cd88ca4d8f251e18d1 /src | |
parent | f306384f5a9006307eec7ace9fc8433aa1a8ed84 (diff) |
rpc: Improve addnode remove command error message
This also adds test coverage for the remove command which was uncovered before.
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 9981ea35df..7e9c78d2f2 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -276,7 +276,7 @@ static UniValue addnode(const JSONRPCRequest& request) else if(strCommand == "remove") { if(!node.connman->RemoveAddedNode(strNode)) - throw JSONRPCError(RPC_CLIENT_NODE_NOT_ADDED, "Error: Node has not been added."); + throw JSONRPCError(RPC_CLIENT_NODE_NOT_ADDED, "Error: Node could not be removed. It has not been added previously."); } return NullUniValue; |