We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07c0891 commit 56054dcCopy full SHA for 56054dc
nodes/HasData/HasData.node.ts
@@ -7,7 +7,7 @@ import {
7
INodeProperties,
8
INodeType,
9
INodeTypeDescription,
10
- NodeApiError,
+ NodeOperationError,
11
} from 'n8n-workflow';
12
13
import { airbnbFields, airbnbOperations } from './descriptions/AirbnbDescription';
@@ -291,10 +291,20 @@ export class HasData implements INodeType {
291
292
} catch (error) {
293
if (this.continueOnFail()) {
294
- returnData.push({ json: { error: error.message } });
+ returnData.push({
295
+ json: {
296
+ error: error.message,
297
+ },
298
+ pairedItem: {
299
+ item: i
300
+ }
301
+ });
302
continue;
303
}
- throw new NodeApiError(this.getNode(), error as any);
304
+
305
+ throw new NodeOperationError(this.getNode(), error, {
306
+ itemIndex: i
307
308
309
310
0 commit comments