mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -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));
|
add(("<%s/>"):format(field));
|
||||||
goto next;
|
goto next;
|
||||||
elseif r ~= "*" and r ~= "?" then
|
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
|
else
|
||||||
io.stderr:write(string.format("Missing optional metadata field '%s'\n", field));
|
io.stderr:write(string.format("Missing optional metadata field '%s'\n", field));
|
||||||
goto next;
|
goto next;
|
||||||
|
Loading…
Reference in New Issue
Block a user