Skip to content

Commit 76e89e3

Browse files
authored
Fix potential concat error (#2238)
1 parent c884cc1 commit 76e89e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/starfall/instance.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ function SF.Instance:runScriptHook(hook, ...)
604604
for name, func in hooks:pairs() do
605605
tbl = self:run(func, ...)
606606
if not tbl[1] then
607-
tbl[2].message = "Hook '" .. hook .. "' errored with: " .. tbl[2].message
607+
tbl[2].message = "Hook '" .. hook .. "' errored with: " .. tostring(tbl[2].message)
608608
self:Error(tbl[2])
609609
return tbl
610610
end
@@ -623,7 +623,7 @@ function SF.Instance:runScriptHookForResult(hook, ...)
623623
break
624624
end
625625
else
626-
tbl[2].message = "Hook '" .. hook .. "' errored with: " .. tbl[2].message
626+
tbl[2].message = "Hook '" .. hook .. "' errored with: " .. tostring(tbl[2].message)
627627
self:Error(tbl[2])
628628
return tbl
629629
end
@@ -634,7 +634,7 @@ end
634634
function SF.Instance:runFunction(func, ...)
635635
local tbl = self:run(func, ...)
636636
if not tbl[1] then
637-
tbl[2].message = "Callback errored with: " .. tbl[2].message
637+
tbl[2].message = "Callback errored with: " .. tostring(tbl[2].message)
638638
self:Error(tbl[2])
639639
end
640640

0 commit comments

Comments
 (0)