Improve error reporting

This commit is contained in:
aaron 2024-07-15 17:37:26 +01:00
parent 14f8d38a35
commit 7bae2517cd
7 changed files with 50 additions and 119 deletions

View file

@ -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)