From 3f3c3a8d9779e38f67034923a1d2491ef9753db0 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 5 Nov 2026 23:31:43 +0530 Subject: Section index in error message. --- mkelf.lua | 6 +++--- 1 file 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 -- cgit v1.3