setban: add RPCErrorCode
This commit is contained in:
committed by
Jack Grigg
parent
171b4de8d9
commit
1cad8c9ff9
@@ -525,7 +525,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;
|
||||
|
||||
Reference in New Issue
Block a user