rchaput / acronyms

Adds support for Acronyms, and List of Acronyms, to Quarto documents.
GNU General Public License v3.0
20 stars 2 forks source link

Improved error messages #13

Closed rchaput closed 9 months ago

rchaput commented 9 months ago

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.