1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 10:12:19 -05:00

Reduce error on missing required metadata to yelling on stderr

This commit is contained in:
Kim Alvefur 2021-03-03 15:29:17 +01:00
parent e7625fa93b
commit 0ccc34d1cf

View File

@ -73,7 +73,8 @@ function Doc(body, metadata, variables)
add(("<%s/>"):format(field));
goto next;
elseif r ~= "*" and r ~= "?" then
error(string.format("Missing required metadata field '%s'", field));
io.stderr:write(string.format("Missing REQUIRED metadata field '%s'\n", field));
goto next;
else
io.stderr:write(string.format("Missing optional metadata field '%s'\n", field));
goto next;