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
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ function Doc(body, metadata, variables)
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;
io.stderr:write(string.format("Missing optional metadata field '%s'\n", field));
goto next;