aboutsummaryrefslogtreecommitdiff
path: root/mkelf.lua
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2026-11-05 23:31:43 +0530
committerSunil Nimmagadda <sunil@nimmagadda.net>2026-11-05 23:31:43 +0530
commit3f3c3a8d9779e38f67034923a1d2491ef9753db0 (patch)
tree15d5a12f012ffc817e65f2ad146d82621e7a0ce1 /mkelf.lua
parent763930302205c61e4909dc429d61e33624d61d6b (diff)
Section index in error message.
Diffstat (limited to 'mkelf.lua')
-rw-r--r--mkelf.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkelf.lua b/mkelf.lua
index 51927d0..d7e801d 100644
--- a/mkelf.lua
+++ b/mkelf.lua
@@ -60,13 +60,13 @@ local function setup_sections(state)
error(("section #%d must be a table"):format(i), 2)
end
if not s.name then
- error(("name is required in section"):format(i), 2)
+ error(("name is required in section #%d"):format(i), 2)
end
if not s.type then
- error(("type is required in section"):format(i), 2)
+ error(("type is required in section #%d"):format(i), 2)
end
if not s.flags then
- error(("flags required in section"):format(i), 2)
+ error(("flags required in section #%d"):format(i), 2)
end
table.insert(state.scopts, s)
end