mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-08-29 00:28:29 -04:00
Fixed some error messages
This commit is contained in:
parent
d8621e4070
commit
78dc7ee937
4 changed files with 48 additions and 39 deletions
|
@ -51,11 +51,11 @@ local validateFilters = function (baseFilters)
|
|||
|
||||
for name, componentsList in pairs(baseFilters) do
|
||||
if type(name) ~= 'string' then
|
||||
error("Invalid name for filter (string key expected, got "..type(name)..")", 3)
|
||||
error("invalid name for filter (string key expected, got "..type(name)..")", 3)
|
||||
end
|
||||
|
||||
if type(componentsList) ~= 'table' then
|
||||
error("Invalid component list for filter '"..name.."' (table expected, got "..type(componentsList)..")", 3)
|
||||
error("invalid component list for filter '"..name.."' (table expected, got "..type(componentsList)..")", 3)
|
||||
end
|
||||
|
||||
local filter = {}
|
||||
|
@ -63,7 +63,7 @@ local validateFilters = function (baseFilters)
|
|||
local ok, componentClass = Components.try(component)
|
||||
|
||||
if not ok then
|
||||
error("Invalid component for filter '"..name.."' at position #"..n.." ("..componentClass..")", 3)
|
||||
error("invalid component for filter '"..name.."' at position #"..n.." ("..componentClass..")", 3)
|
||||
end
|
||||
|
||||
filter[#filter + 1] = componentClass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue