diff options
Diffstat (limited to 'mkelf.lua')
| -rw-r--r-- | mkelf.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -42,9 +42,9 @@ local function loadconfig(fn) if type(t) ~= "table" then error("segments must be a table", 2) end - for _, segment in ipairs(t) do + for i, segment in ipairs(t) do if type(segment) ~= "table" then - error("segment must be a table", 2) + error(("segment #%d must be a table"):format(i), 2) end segment = setmetatable(segment, segment_mt) segment:normalize() @@ -56,9 +56,9 @@ local function loadconfig(fn) if type(t) ~= "table" then error("sections must be a table", 2) end - for _, section in ipairs(t) do + for i, section in ipairs(t) do if type(section) ~= "table" then - error("section must be a table", 2) + error(("section #%d must be a table"):format(i), 2) end section = setmetatable(section, section_mt) section:normalize() |
