mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(Execute Workflow Node): Continue on fail behaviour not correctly implemented (#9890)
This commit is contained in:
@@ -231,7 +231,11 @@ export class ExecuteWorkflow implements INodeType {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (this.continueOnFail(error)) {
|
if (this.continueOnFail(error)) {
|
||||||
return [[{ json: { error: error.message }, pairedItem: { item: i } }]];
|
if (returnData[i] === undefined) {
|
||||||
|
returnData[i] = [];
|
||||||
|
}
|
||||||
|
returnData[i].push({ json: { error: error.message }, pairedItem: { item: i } });
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
throw new NodeOperationError(this.getNode(), error, {
|
throw new NodeOperationError(this.getNode(), error, {
|
||||||
message: `Error executing workflow with item at index ${i}`,
|
message: `Error executing workflow with item at index ${i}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user