Fix root() not showing full error trace

This commit is contained in:
aaron 2024-07-17 23:28:43 +01:00
parent 7bae2517cd
commit 4f3fccd3bb

View file

@ -23,7 +23,8 @@ local function root<T...>(fn: (destroy: () -> ()) -> T...): T...
push_scope(node) push_scope(node)
local result = { pcall(fn, destroy) } local function efn(err: string) return debug.traceback(err, 3) end
local result = { xpcall(fn, efn, destroy) }
pop_scope() pop_scope()