From ec092ceba45e8947d103df9a60909e7995b8b26d Mon Sep 17 00:00:00 2001 From: cjosephdc <87730839+cjosephdc@users.noreply.github.com> Date: Fri, 11 Jul 2025 11:54:10 +0800 Subject: [PATCH] Update callback.lua This PR modifies the Callbacks:Execute method to improve error handling when a callback fails. --- [core]/es_extended/server/modules/callback.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/[core]/es_extended/server/modules/callback.lua b/[core]/es_extended/server/modules/callback.lua index 3301e6a6..590820b8 100644 --- a/[core]/es_extended/server/modules/callback.lua +++ b/[core]/es_extended/server/modules/callback.lua @@ -26,9 +26,11 @@ function Callbacks:Execute(cb, ...) if not success then print(("[^1ERROR^7] Failed to execute Callback with RequestId: ^5%s^7"):format(self.currentId)) - error(errorString) + print("^3Callback Error:^7 " .. tostring(errorString)) -- just log, don't throw + self.currentId = nil return end + self.currentId = nil end