n8n-nodes-cala 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -352,11 +352,13 @@ class Cala {
|
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
else {
|
|
355
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}
|
|
355
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`, { itemIndex: i });
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
else {
|
|
359
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}
|
|
359
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`, {
|
|
360
|
+
itemIndex: i,
|
|
361
|
+
});
|
|
360
362
|
}
|
|
361
363
|
returnData.push({
|
|
362
364
|
json: response,
|
|
@@ -364,11 +366,12 @@ class Cala {
|
|
|
364
366
|
});
|
|
365
367
|
}
|
|
366
368
|
catch (error) {
|
|
367
|
-
if (error instanceof n8n_workflow_1.NodeOperationError)
|
|
368
|
-
throw error;
|
|
369
369
|
if (this.continueOnFail()) {
|
|
370
370
|
returnData.push({
|
|
371
|
-
json: {
|
|
371
|
+
json: {
|
|
372
|
+
error: new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i })
|
|
373
|
+
.message,
|
|
374
|
+
},
|
|
372
375
|
pairedItem: { item: i },
|
|
373
376
|
});
|
|
374
377
|
continue;
|