mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Improve error reporting
This commit is contained in:
parent
14f8d38a35
commit
7bae2517cd
7 changed files with 50 additions and 119 deletions
|
|
@ -29,7 +29,7 @@ local function root<T...>(fn: (destroy: () -> ()) -> T...): T...
|
|||
|
||||
if not result[1] then
|
||||
refs[node] = nil
|
||||
throw(`mount error\n{result[2]}`)
|
||||
throw(`error while running root():\n\n{result[2]}`)
|
||||
end
|
||||
|
||||
return unpack(result :: any, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue