Add clarifying comment

This commit is contained in:
Omar Ajoue 2022-06-29 14:55:31 +02:00
commit 26f52ed166

View file

@ -56,6 +56,8 @@ export class ExampleNode implements INodeType {
} else {
// Adding `itemIndex` allows other workflows to handle this error
if (error.context) {
// If the error thrown already contains the context property,
// only append the itemIndex
error.context.itemIndex = itemIndex;
throw error;
}