From f161a2ad73abf5a77858ead5a84071b89e2185a6 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Sun, 18 Jan 2026 20:32:03 +0000 Subject: [PATCH] Update public/_kleap/kleap-nextjs-error-detector.js --- public/_kleap/kleap-nextjs-error-detector.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/_kleap/kleap-nextjs-error-detector.js b/public/_kleap/kleap-nextjs-error-detector.js index 40af9d6..0ffe53a 100644 --- a/public/_kleap/kleap-nextjs-error-detector.js +++ b/public/_kleap/kleap-nextjs-error-detector.js @@ -69,7 +69,9 @@ type: 'build-error', message: title || 'Build error detected', details: body, - fullText: `${title}\n\n${body}`.trim(), + fullText: `${title} + +${body}`.trim(), }; } @@ -97,7 +99,8 @@ text.includes('Runtime Error')) { // Extract first meaningful line as message - const lines = text.split('\n').map(l => l.trim()).filter(Boolean); + const lines = text.split(' +').map(l => l.trim()).filter(Boolean); const message = lines[0] || 'Build error detected'; return {