From b0c4b4ec5a8bb2c923f4557a90ab5793b9a23cfe Mon Sep 17 00:00:00 2001 From: root Date: Sun, 13 Sep 2026 11:00:14 +0200 Subject: [PATCH] Harness: print non-string check details as JSON check() appended the detail by string concatenation, so an object argument showed up as "[object Object]" in the log (27-console.mjs). Co-Authored-By: Claude Fable 5.1 --- tools/lib/harness.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/harness.mjs b/tools/lib/harness.mjs index 555f3ff4..e5def6be 100644 --- a/tools/lib/harness.mjs +++ b/tools/lib/harness.mjs @@ -382,7 +382,8 @@ export async function runChecks(options, body) { let failures = 0; let checkCount = 0; function check(name, ok, detail = '') { - console.log(`${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ' – ' + detail : ''}`); + const text = typeof detail === 'string' ? detail : JSON.stringify(detail); + console.log(`${ok ? 'PASS' : 'FAIL'} ${name}${text ? ' – ' + text : ''}`); checkCount++; if (!ok) failures++; }