Skip to content

Commit b800c76

Browse files
authored
refactor: improve error message for defparams in addEvent (#424)
1 parent c0b3ef8 commit b800c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msu/utils/skills.nut

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
local t = typeof p;
3232
if (t == "array" || t == "table" || t == "instance" || t == "class")
3333
{
34-
::logError("addEvent cannot be used to add functions with reference type defparams");
34+
::logError("addEvent: _function params cannot have mutable default values");
3535
throw ::MSU.Exception.InvalidValue(t);
3636
}
3737
}

0 commit comments

Comments
 (0)