mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(Execute Workflow Node): Continue on fail behaviour not correctly implemented (#9890)
This commit is contained in:
parent
41c47a28a9
commit
16b1a094b1
|
@ -231,7 +231,11 @@ export class ExecuteWorkflow implements INodeType {
|
|||
}
|
||||
} catch (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, {
|
||||
message: `Error executing workflow with item at index ${i}`,
|
||||
|
|
Loading…
Reference in a new issue