• exec/avatars.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tuesday, November 03, 2026 22:17:41
    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 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)