aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-12 22:27:03 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-17 21:40:56 +0200
commit1f02b802538ff16313c27f1539860ee06b907c7c (patch)
treecdbae7afe4111dd907670395c0568cce5734c5a7 /src/rpcnet.cpp
parentd624167387a658c9b2c25ad13492262ccd2592bf (diff)
downloadbitcoin-1f02b802538ff16313c27f1539860ee06b907c7c.tar.xz
setban: add RPCErrorCode
Diffstat (limited to 'src/rpcnet.cpp')
-rw-r--r--src/rpcnet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index 97d5ccbff8..5a26c7c3ae 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -524,7 +524,7 @@ UniValue setban(const UniValue& params, bool fHelp)
else if(strCommand == "remove")
{
if (!( isSubnet ? CNode::Unban(subNet) : CNode::Unban(netAddr) ))
- throw JSONRPCError(RPC_CLIENT_NODE_ALREADY_ADDED, "Error: Unban failed");
+ throw JSONRPCError(RPC_MISC_ERROR, "Error: Unban failed");
}
return NullUniValue;