https://gitlab.synchro.net/main/sbbs/-/commit/f097c5bc1ec572602fb7b2b8
Modified Files:
exec/avatars.js
Log Message:
Include the offending text in the avatars.js JSON parse warning
When an "SBBS User Avatars" message's JSON block fails to parse, the
alert() only said "Error SyntaxError: JSON.parse parsing JSON", which
tells the sysop nothing about which text failed (SpiderMonkey 1.8.5's SyntaxError carries no position). The warning now includes the length of
the joined JSON text and its first and last 40 characters (truncation,
the likely cause on a QWK hop, shows in the tail), and the full text is
logged at debug level for a sysop who wants all of it. Prompted by
RickV's report in the DOVE-Net SYNC sub.
Co-Authored-By: Claude Fable 5.1 <
[email protected]>
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net