Update public/_kleap/kleap-nextjs-error-detector.js
This commit is contained in:
parent
f227de63f9
commit
70f9068d68
|
|
@ -69,7 +69,9 @@
|
||||||
type: 'build-error',
|
type: 'build-error',
|
||||||
message: title || 'Build error detected',
|
message: title || 'Build error detected',
|
||||||
details: body,
|
details: body,
|
||||||
fullText: `${title}\n\n${body}`.trim(),
|
fullText: `${title}
|
||||||
|
|
||||||
|
${body}`.trim(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,7 +99,8 @@
|
||||||
text.includes('Runtime Error')) {
|
text.includes('Runtime Error')) {
|
||||||
|
|
||||||
// Extract first meaningful line as message
|
// 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';
|
const message = lines[0] || 'Build error detected';
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue