mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Fix root() not showing full error trace
This commit is contained in:
parent
7bae2517cd
commit
4f3fccd3bb
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ local function root<T...>(fn: (destroy: () -> ()) -> T...): T...
|
|||
|
||||
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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue