mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 20:33:54 -04:00
Error handling overhaul
This commit is contained in:
parent
743d662ef9
commit
892f4d4700
6 changed files with 57 additions and 28 deletions
|
@ -50,7 +50,7 @@ System.mt = {
|
|||
function System.new(definition)
|
||||
for name, def in pairs(definition) do
|
||||
if type(name) ~= 'string' then
|
||||
error("invalid name for filter (string key expected, got "..type(name)..")", 2)
|
||||
Utils.error(2, "invalid name for filter (string key expected, got %s)", type(name))
|
||||
end
|
||||
|
||||
Filter.validate(name, def)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue