mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 14:12:24 -05:00
Add clarifying comment
This commit is contained in:
parent
ba83500857
commit
26f52ed166
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ export class ExampleNode implements INodeType {
|
|||
items.push({json: this.getInputData(itemIndex)[0].json, error});
|
||||
} else {
|
||||
// Adding `itemIndex` allows other workflows to handle this error
|
||||
if (error.context) {
|
||||
if (error.context) {
|
||||
// If the error thrown already contains the context property,
|
||||
// only append the itemIndex
|
||||
error.context.itemIndex = itemIndex;
|
||||
throw error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue