now reports mounting error

This commit is contained in:
Aloroider 2023-09-16 00:56:01 +02:00
parent 35176bc484
commit 00f75973ac

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}`)
throw(`mount error\n{result[2]}`)
end
return unpack(result :: any, 2)