From eef0144e77ee87fc7fe275beb743bd85e6e37f19 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 7 Mar 2021 19:17:19 +0100 Subject: [PATCH] Some more work for the new group manager --- src/Error.cpp | 3 ++- src/Error.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Error.cpp b/src/Error.cpp index e0fe98a..2e5f4fd 100644 --- a/src/Error.cpp +++ b/src/Error.cpp @@ -193,7 +193,8 @@ const std::vector ts::availableErrors = { {0x1300, "group_invalid_id" , "Invalid group id" }, {0x1301, "group_name_inuse" , "Group name is already in use" }, - {0x1302, "group_not_assigned_over_this_server" , "the group hasn't been assigned over this server" }, + define_error_description(group_not_assigned_over_this_server, "the group hasn't been assigned over this server"), + define_error_description(group_not_empty, "the target group isn't empty"), {0xE000, "resource_limit_reached" , "resource limit reached" }, diff --git a/src/Error.h b/src/Error.h index 27cc0b1..9036de6 100644 --- a/src/Error.h +++ b/src/Error.h @@ -191,6 +191,7 @@ namespace ts { group_invalid_id = 0x1300, group_name_inuse = 0x1301, group_not_assigned_over_this_server = 0x1302, + group_not_empty = 0x1303, conversation_invalid_id = 0x2200, conversation_more_data = 0x2201,