mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 14:12:24 -05:00
Update package-lock.json and add pairedItem
This commit is contained in:
parent
5935eec634
commit
f6d9d17b43
2 changed files with 258 additions and 243 deletions
|
|
@ -55,7 +55,7 @@ export class ExampleNode implements INodeType {
|
|||
// This node should never fail but we want to showcase how
|
||||
// to handle errors.
|
||||
if (this.continueOnFail()) {
|
||||
items.push({ json: this.getInputData(itemIndex)[0].json, error });
|
||||
items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
|
||||
} else {
|
||||
// Adding `itemIndex` allows other workflows to handle this error
|
||||
if (error.context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue