mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Handle new built-in node:* modules in the task-runner tests on node.js 24 (#16026)
This commit is contained in:
committed by
GitHub
parent
5b3db5dddc
commit
2945bbdd1a
@@ -92,11 +92,12 @@ export class ExecutionError extends SerializableError {
|
|||||||
private toErrorDetailsAndType(messageRow?: string) {
|
private toErrorDetailsAndType(messageRow?: string) {
|
||||||
if (!messageRow) return [null, null];
|
if (!messageRow) return [null, null];
|
||||||
|
|
||||||
const [errorDetails, errorType] = messageRow
|
const segments = messageRow.split(':').map((i) => i.trim());
|
||||||
.split(':')
|
if (segments[1] === "Cannot find module 'node") {
|
||||||
.reverse()
|
segments[1] = `${segments[1]}:${segments[2]}`;
|
||||||
.map((i) => i.trim());
|
segments.splice(2, 1);
|
||||||
|
}
|
||||||
|
const [errorDetails, errorType] = segments.reverse();
|
||||||
return [errorDetails, errorType === 'Error' ? null : errorType];
|
return [errorDetails, errorType === 'Error' ? null : errorType];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user