mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
feat: use ES2022 native error chaining to improve error reporting (#4431)
feat: use ES2022 native error chaining
This commit is contained in:
committed by
GitHub
parent
3a9684df9f
commit
1f610b90f6
@@ -95,8 +95,7 @@ export class ActiveWorkflows {
|
||||
throw new WorkflowActivationError(
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
|
||||
`There was a problem activating the workflow: "${error.message}"`,
|
||||
error,
|
||||
triggerNode,
|
||||
{ cause: error as Error, node: triggerNode },
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -122,8 +121,7 @@ export class ActiveWorkflows {
|
||||
throw new WorkflowActivationError(
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
|
||||
`There was a problem activating the workflow: "${error.message}"`,
|
||||
error,
|
||||
pollNode,
|
||||
{ cause: error as Error, node: pollNode },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user