From 00f75973acdcbb8f8e8040ce5ff6b643d05bb090 Mon Sep 17 00:00:00 2001 From: Aloroider <70312917+Aloroid@users.noreply.github.com> Date: Sat, 16 Sep 2023 00:56:01 +0200 Subject: [PATCH] now reports mounting error --- src/root.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root.luau b/src/root.luau index a2900cd..50a1c1c 100644 --- a/src/root.luau +++ b/src/root.luau @@ -29,7 +29,7 @@ local function root(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)