diff options
| -rw-r--r-- | mkelf.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,9 @@ local function loadconfig(fn) error("segments must be a table", 2) end for _, segment in ipairs(t) do + if type(segment) ~= "table" then + error("segment must be a table", 2) + end segment = setmetatable(segment, segment_mt) segment:normalize() segment:validate() @@ -54,6 +57,9 @@ local function loadconfig(fn) error("sections must be a table", 2) end for _, section in ipairs(t) do + if type(section) ~= "table" then + error("section must be a table", 2) + end section = setmetatable(section, section_mt) section:normalize() section:validate() |
