From fa0f78b937a970049623d11361d106cf2f12cedd Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 20 Feb 2025 15:03:48 +0000 Subject: Add error constants for the custom error range. --- modules/rpc/rpc_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/rpc/rpc_main.cpp b/modules/rpc/rpc_main.cpp index 8b6a1797e..ad682817f 100644 --- a/modules/rpc/rpc_main.cpp +++ b/modules/rpc/rpc_main.cpp @@ -50,7 +50,7 @@ public: request.reply = this->repl; - request.Error(-32000, "Invalid password"); + request.Error(RPC::ERR_CUSTOM_START, "Invalid password"); xinterface->Reply(request); client->SendReply(&request.reply); @@ -81,7 +81,7 @@ public: BotInfo *bi = BotInfo::Find(service, true); if (!bi) { - request.Error(-32000, "Invalid service"); + request.Error(RPC::ERR_CUSTOM_START, "Invalid service"); return true; } -- cgit