mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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) {
|
||||
if (!messageRow) return [null, null];
|
||||
|
||||
const [errorDetails, errorType] = messageRow
|
||||
.split(':')
|
||||
.reverse()
|
||||
.map((i) => i.trim());
|
||||
|
||||
const segments = messageRow.split(':').map((i) => i.trim());
|
||||
if (segments[1] === "Cannot find module 'node") {
|
||||
segments[1] = `${segments[1]}:${segments[2]}`;
|
||||
segments.splice(2, 1);
|
||||
}
|
||||
const [errorDetails, errorType] = segments.reverse();
|
||||
return [errorDetails, errorType === 'Error' ? null : errorType];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user