diff --git a/public/_kleap/kleap-nextjs-error-detector.js b/public/_kleap/kleap-nextjs-error-detector.js index 0ffe53a..40af9d6 100644 --- a/public/_kleap/kleap-nextjs-error-detector.js +++ b/public/_kleap/kleap-nextjs-error-detector.js @@ -69,9 +69,7 @@ type: 'build-error', message: title || 'Build error detected', details: body, - fullText: `${title} - -${body}`.trim(), + fullText: `${title}\n\n${body}`.trim(), }; } @@ -99,8 +97,7 @@ ${body}`.trim(), text.includes('Runtime Error')) { // Extract first meaningful line as message - const lines = text.split(' -').map(l => l.trim()).filter(Boolean); + const lines = text.split('\n').map(l => l.trim()).filter(Boolean); const message = lines[0] || 'Build error detected'; return {