Fixed some error messages

This commit is contained in:
Pablo Ariel Mayobre 2020-03-15 00:20:06 -03:00
parent d8621e4070
commit 78dc7ee937
No known key found for this signature in database
GPG key ID: 5ACD9E6858BEB0A9
4 changed files with 48 additions and 39 deletions

View file

@ -204,7 +204,7 @@ function Entity:deserialize(data)
local componentData = data[i]
if (not Components.has(componentData.__name)) then
error("bad argument #1 to 'Entity:deserialize' (ComponentClass "..type(componentData.__name).." wasn't yet loaded)") -- luacheck: ignore
error("bad argument #1 to 'Entity:deserialize' (ComponentClass '"..tostring(componentData.__name).."' wasn't yet loaded)") -- luacheck: ignore
end
local componentClass = Components[componentData.__name]