Improved most error and warning messages by using the quarto.log library.
For errors specifically, we must also resort to using assert because simply logging the message does not stop execution (which would lead the filter into an unstable state).
The standard error function in Lua has been redefined by Quarto and no longer stops execution as well.
At some point, we should be able to use fatal or fail, but they seem not to be defined in all versions...
The error when an acronym is not correctly configured (i.e., missing shortname or longname) has been greatly improved, to be more verbose and readable for end users. Some internal errors have been kept concise, because they should not appear to end users.
Improved most error and warning messages by using the
quarto.log
library.For errors specifically, we must also resort to using
assert
because simply logging the message does not stop execution (which would lead the filter into an unstable state). The standarderror
function in Lua has been redefined by Quarto and no longer stops execution as well. At some point, we should be able to usefatal
orfail
, but they seem not to be defined in all versions...The error when an acronym is not correctly configured (i.e., missing shortname or longname) has been greatly improved, to be more verbose and readable for end users. Some internal errors have been kept concise, because they should not appear to end users.