File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
634634function 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
You can’t perform that action at this time.
0 commit comments