From a51d0ad2de89b9757d158df95ddeba2bfcb23935 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Tue, 11 Aug 2020 00:01:53 +0200 Subject: rpc: Improve addnode remove command error message This also adds test coverage for the remove command which was uncovered before. --- src/rpc/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpc/net.cpp') diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 9981ea35d..7e9c78d2f 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; -- cgit v1.2.3