1
0

Fixed minor issue

This commit is contained in:
Jon Michael Aanes 2017-07-10 10:52:33 +02:00
parent b85dc4694a
commit 7b9b9d2912

View File

@ -146,7 +146,7 @@ return function (module_name)
__index = function (t, k)
local keys = {}
for k in pairs(t) do keys[#keys+1] = k end
if #keys then external_error(err_hdl, '', 'Attempting to index unknown key %s in an empty table.', k) end
if #keys == 0 then external_error(err_hdl, '', 'Attempting to index unknown key %s in an empty table.', k) end
correct_error(err_hdl, '', 'Attempting to index unknown key %s, maybe you meant %s?', k, keys)
end
})