[sword-devel] Osis2mod debug messages

DM Smith dmsmith at crosswire.org
Mon Jul 7 17:14:33 EDT 2025


I have just committed revision 3907 for osis2mod, adding location information to messages so that one can more readily tie reported events to the OSIS input file.

I have updated the osis2mod wiki entry to document it more fully: https://wiki.crosswire.org/Osis2mod#Messages

MODTOOLS-25 give location in input for messages.

Created identifyMsg which creates a standardized message for reporting
and used it for all messages to standard out.

The message is of the form:
 type(kind)[linePos,charPos] osisID=osisID: message

Where:
 type           The message type (e.g., "ERROR", "WARNING", "INFO").
 kind           The message category or kind (e.g., "REF", "PARSE").
 linePos        The position in the file of the last line that was read.
 charPos        The position in the line of the last character that was read.
 osisID         (Optional) The current OSIS ID to include. May be nullptr or empty.
 message        event description with details

* If linePos is 0, the position ([linePos,charPos]) is omitted.
* If osisID is nullptr or empty, the osisID part is omitted.
* The returned string always ends with a colon and a trailing space (": “).

In Him,
	DM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20250707/7cc28929/attachment.htm>


More information about the sword-devel mailing list