hotfix: Resolved critical QuestieQuest runtime crash and hardened error handler

This commit is contained in:
Xurkon
2026-04-08 03:48:46 -05:00
parent 199ed47868
commit 4ef2b9f661
3 changed files with 23 additions and 14 deletions
+7 -2
View File
@@ -62,8 +62,13 @@ local NewThread = ThreadLib.ThreadSimple
local NOP_FUNCTION = function()
end
local ERR_FUNCTION = function(err)
print(err)
print(debugstack())
Questie:Error("[QuestieQuest] " .. tostring(err))
if debugstack then
local stack = debugstack()
if stack and type(stack) == "string" then
Questie:Debug(Questie.DEBUG_CRITICAL, "Stack Trace:\n" .. stack:sub(1, 1000))
end
end
end
-- forward declaration