fix an outdated comment

This commit is contained in:
Kartik K. Agaram 2023-11-22 22:40:41 -08:00
parent 52abeafc47
commit 408c614cfe
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
-- Internal helper for animations.
-- Records the stack of function calls that led to any error within a debug animation coroutine.
-- Record the stack of function calls that led to any error within a coroutine.
-- Lua normally prints out errors with callstacks, but coroutines interrupt the stack unless we do some additional work.
save_callstack = function(err)
local callstack = debug.traceback('', --[[stack frame]]2)
Error_with_callstack = 'Error: ' .. cleaned_up_frame(tostring(err))..'\n'..cleaned_up_callstack(callstack)
end
end