Locate-error function docstring suggests that format-and-args may be empty, and in some calls it is. However, destructuring-bind in document-documentable/with-document-context then fails.
Error while parsing arguments to DESTRUCTURING-BIND:
too few elements in
()
to satisfy lambda list
(FORMAT-CONTROL &REST FORMAT-ARGS):
at least 1 expected, but got 0
Simple fix: change in locate-error function
:message format-and-args
to
:message (or format-and-args '(""))
The error now reads correctly
Could not locate FOOBAR FOOBAR.
[While documenting (@TEST MGL-PAX:SECTION)]
Locate-error function docstring suggests that format-and-args may be empty, and in some calls it is. However, destructuring-bind in document-documentable/with-document-context then fails.
Example:
gives
Simple fix: change in locate-error function
to
The error now reads correctly
Tested on current master.