mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Prevent NodeApiError rewraping (no-changelog) (#9627)
This commit is contained in:
@@ -13,9 +13,13 @@ export class NodeOperationError extends NodeError {
|
||||
error: Error | string | JsonObject,
|
||||
options: NodeOperationErrorOptions = {},
|
||||
) {
|
||||
if (error instanceof NodeOperationError) {
|
||||
return error;
|
||||
}
|
||||
if (typeof error === 'string') {
|
||||
error = new Error(error);
|
||||
}
|
||||
|
||||
super(node, error);
|
||||
|
||||
if (error instanceof NodeError && error?.messages?.length) {
|
||||
|
||||
Reference in New Issue
Block a user