diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-20 15:03:48 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-20 15:08:37 +0000 |
commit | fa0f78b937a970049623d11361d106cf2f12cedd (patch) | |
tree | 390e3793c3b7dcd05d966853d8e6f1e1f4a8c0e8 /modules/rpc/rpc_main.cpp | |
parent | 96839ae1b82fa51340ad9769fe57087c8dac5ede (diff) |
Add error constants for the custom error range.
Diffstat (limited to 'modules/rpc/rpc_main.cpp')
-rw-r--r-- | modules/rpc/rpc_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |