Fixed minor issue
This commit is contained in:
parent
b85dc4694a
commit
7b9b9d2912
|
@ -146,7 +146,7 @@ return function (module_name)
|
||||||
__index = function (t, k)
|
__index = function (t, k)
|
||||||
local keys = {}
|
local keys = {}
|
||||||
for k in pairs(t) do keys[#keys+1] = k end
|
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)
|
correct_error(err_hdl, '', 'Attempting to index unknown key %s, maybe you meant %s?', k, keys)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user