aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/header.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/header.lua b/elf/header.lua
index 50b9192..ca50391 100644
--- a/elf/header.lua
+++ b/elf/header.lua
@@ -50,6 +50,7 @@ local M = {}
---@param hdropts HeaderOptions
---@return Header
function M.normalize(hdropts)
+ -- TODO drop these error() and return, let callers report.
if not hdropts.class then error("class is required in header", 3) end
if not hdropts.data then error("data is required in header", 3) end
if not hdropts.type then error("type is required in header", 3) end