setban: add RPCErrorCode

This commit is contained in:
Jonas Schnelli
2015-06-12 22:27:03 +02:00
parent d624167387
commit 1f02b80253
2 changed files with 2 additions and 1 deletions

View File

@@ -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;