Fix mount error trace

This commit is contained in:
aaron 2023-09-16 00:15:03 +01:00
parent 35176bc484
commit 6090e0fc87

View file

@ -29,7 +29,7 @@ local function root<T...>(fn: (destroy: () -> ()) -> T...): T...
if not result[1] then if not result[1] then
refs[node] = nil refs[node] = nil
throw(`mount error\n{result}`) throw(`mount error\n{result[2]}`)
end end
return unpack(result :: any, 2) return unpack(result :: any, 2)