mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
Reduce error on missing required metadata to yelling on stderr
This commit is contained in:
parent
e7625fa93b
commit
0ccc34d1cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user