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

@ -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