Update public/_kleap/kleap-nextjs-error-detector.js
This commit is contained in:
parent
45df71d16c
commit
b15bda5988
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue