diff options
| author | Fabian Jahr <[email protected]> | 2020-08-11 00:01:53 +0200 |
|---|---|---|
| committer | Fabian Jahr <[email protected]> | 2020-08-11 14:04:02 +0200 |
| commit | a51d0ad2de89b9757d158df95ddeba2bfcb23935 (patch) | |
| tree | c7dde24190e668e26b2e86cd88ca4d8f251e18d1 /src/rpc/net.cpp | |
| parent | Merge #19622: build: Drop ancient hack in gitian-linux descriptor (diff) | |
| download | discoin-a51d0ad2de89b9757d158df95ddeba2bfcb23935.tar.xz discoin-a51d0ad2de89b9757d158df95ddeba2bfcb23935.zip | |
rpc: Improve addnode remove command error message
This also adds test coverage for the remove command which was uncovered before.
Diffstat (limited to 'src/rpc/net.cpp')
| -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 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; |