mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Do not show errors not processed by n8n (no-changelog) (#9598)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -487,7 +487,7 @@ export class ActionNetwork implements INodeType {
|
||||
? returnData.push(...(response as IDataObject[]))
|
||||
: returnData.push(response as IDataObject);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1190,7 +1190,7 @@ export class ActiveCampaign implements INodeType {
|
||||
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -420,7 +420,7 @@ export class Affinity implements INodeType {
|
||||
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -653,7 +653,7 @@ export class AirtableV1 implements INodeType {
|
||||
rows.length = 0;
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
@@ -696,7 +696,7 @@ export class AirtableV1 implements INodeType {
|
||||
rows.length = 0;
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
@@ -757,7 +757,7 @@ export class AirtableV1 implements INodeType {
|
||||
}),
|
||||
];
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
} else {
|
||||
throw error;
|
||||
@@ -792,7 +792,7 @@ export class AirtableV1 implements INodeType {
|
||||
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
@@ -880,7 +880,7 @@ export class AirtableV1 implements INodeType {
|
||||
rows.length = 0;
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export async function execute(
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
error = processAirtableError(error as NodeApiError, undefined, i);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ export async function execute(
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
error = processAirtableError(error as NodeApiError, undefined, i);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { message: error.message, error } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export async function execute(
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
error = processAirtableError(error as NodeApiError, id, i);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ export async function execute(
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
error = processAirtableError(error as NodeApiError, id, i);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ export async function execute(
|
||||
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { message: error.message, error }, pairedItem: { item: i } });
|
||||
continue;
|
||||
} else {
|
||||
|
||||
@@ -138,7 +138,7 @@ export async function execute(
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
error = processAirtableError(error as NodeApiError, recordId, i);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { message: error.message, error } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ export async function execute(
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
error = processAirtableError(error as NodeApiError, undefined, i);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { message: error.message, error } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ export class Amqp implements INodeType {
|
||||
|
||||
return [this.helpers.returnJsonArray(responseData)];
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
return [this.helpers.returnJsonArray({ error: error.message })];
|
||||
} else {
|
||||
throw error;
|
||||
|
||||
@@ -385,7 +385,7 @@ export class ApiTemplateIo implements INodeType {
|
||||
|
||||
returnData.push(responseData as IDataObject);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
@@ -471,7 +471,7 @@ export class ApiTemplateIo implements INodeType {
|
||||
}
|
||||
returnData.push(responseData as IDataObject);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
@@ -561,7 +561,7 @@ export class ApiTemplateIo implements INodeType {
|
||||
}
|
||||
returnData.push(responseData as IDataObject);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -2425,7 +2425,7 @@ export class Asana implements INodeType {
|
||||
),
|
||||
);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ export class Autopilot implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const exectionErrorWithMetaData = this.helpers.constructExecutionMetaData(
|
||||
[{ json: { error: error.message } }],
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -200,7 +200,7 @@ export class AwsLambda implements INodeType {
|
||||
} as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: (error as JsonObject).message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ export class AwsSns implements INodeType {
|
||||
} as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ export class AwsCertificateManager implements INodeType {
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ export class AwsComprehend implements INodeType {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@ export class AwsDynamoDB implements INodeType {
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -450,7 +450,7 @@ export class AwsElb implements INodeType {
|
||||
),
|
||||
);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: (error as JsonObject).toString() });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -454,7 +454,7 @@ export class AwsRekognition implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -893,7 +893,7 @@ export class AwsS3V1 implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -1057,7 +1057,7 @@ export class AwsS3V2 implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -1286,7 +1286,7 @@ export class AwsSes implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -378,7 +378,7 @@ export class AwsSqs implements INodeType {
|
||||
const result = responseData.SendMessageResponse.SendMessageResult;
|
||||
returnData.push(result as IDataObject);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.description });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ export class AwsTextract implements INodeType {
|
||||
returnData.push(responseData as unknown as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -539,7 +539,7 @@ export class AwsTranscribe implements INodeType {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export async function router(this: IExecuteFunctions): Promise<INodeExecutionDat
|
||||
operationResult.push(...(await companyReport[bamboohr.operation].execute.call(this, i)));
|
||||
}
|
||||
} catch (err) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(err)) {
|
||||
operationResult.push({ json: this.getInputData(i)[0].json, error: err });
|
||||
} else {
|
||||
throw err;
|
||||
|
||||
@@ -333,7 +333,7 @@ export class Baserow implements INodeType {
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -370,7 +370,7 @@ export class Beeminder implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ export class Bitly implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -510,7 +510,7 @@ export class Box implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -275,7 +275,7 @@ export class Brandfetch implements INodeType {
|
||||
responseData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
responseData.push({ error: error.message, json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -627,7 +627,7 @@ export class Chargebee implements INodeType {
|
||||
returnData.push(...responseData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ export class CircleCi implements INodeType {
|
||||
|
||||
returnData.push(...(responseData as INodeExecutionData[]));
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ export class CiscoWebex implements INodeType {
|
||||
|
||||
returnData.push(...(responseData as INodeExecutionData[]));
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.toString(), json: {}, itemIndex: i });
|
||||
continue;
|
||||
}
|
||||
@@ -548,7 +548,7 @@ export class CiscoWebex implements INodeType {
|
||||
// returnData.push(...responseData.items);
|
||||
// }
|
||||
// } catch (error) {
|
||||
// if (this.continueOnFail()) {
|
||||
// if (this.continueOnFail(error)) {
|
||||
// returnData.push({
|
||||
// error: error.message,
|
||||
// });
|
||||
|
||||
@@ -237,7 +237,7 @@ export class CitrixAdc implements INodeType {
|
||||
}),
|
||||
);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: (error as JsonObject).toString() });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ export class Clearbit implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1628,7 +1628,7 @@ export class ClickUp implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -839,7 +839,7 @@ export class Clockify implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ export class Cloudflare implements INodeType {
|
||||
),
|
||||
);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ export class Cockpit implements INodeType {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -303,7 +303,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
return [this.helpers.returnJsonArray({ error: error.message })];
|
||||
}
|
||||
throw error;
|
||||
@@ -348,7 +348,7 @@ export class Coda implements INodeType {
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -428,7 +428,7 @@ export class Coda implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: { error: error.message },
|
||||
pairedItem: [{ item: i }],
|
||||
@@ -465,7 +465,7 @@ export class Coda implements INodeType {
|
||||
await codaApiRequest.call(this, 'DELETE', endpoint, { rowIds: sendData[endpoint] }, qs);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
return [this.helpers.returnJsonArray({ error: error.message })];
|
||||
}
|
||||
throw error;
|
||||
@@ -485,7 +485,7 @@ export class Coda implements INodeType {
|
||||
responseData = await codaApiRequest.call(this, 'POST', endpoint, {});
|
||||
returnData.push(responseData as INodeExecutionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -513,7 +513,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -547,7 +547,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -576,7 +576,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -609,7 +609,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -638,7 +638,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -671,7 +671,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -721,7 +721,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...responseData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -796,7 +796,7 @@ export class Coda implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: { error: error.message },
|
||||
pairedItem: [{ item: i }],
|
||||
@@ -825,7 +825,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -854,7 +854,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -887,7 +887,7 @@ export class Coda implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.messsage }),
|
||||
{ itemData: { item: i } },
|
||||
@@ -931,7 +931,7 @@ export class Coda implements INodeType {
|
||||
};
|
||||
await codaApiRequest.call(this, 'PUT', endpoint, body, qs);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
items[i].json = { error: error.message };
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ export class Code implements INodeType {
|
||||
try {
|
||||
items = (await sandbox.runCodeAllItems()) as INodeExecutionData[];
|
||||
} catch (error) {
|
||||
if (!this.continueOnFail()) {
|
||||
if (!this.continueOnFail(error)) {
|
||||
set(error, 'node', node);
|
||||
throw error;
|
||||
}
|
||||
@@ -162,7 +162,7 @@ export class Code implements INodeType {
|
||||
try {
|
||||
result = await sandbox.runCodeEachItem();
|
||||
} catch (error) {
|
||||
if (!this.continueOnFail()) {
|
||||
if (!this.continueOnFail(error)) {
|
||||
set(error, 'node', node);
|
||||
throw error;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
export class ExecutionError extends Error {
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
export class ExecutionError extends ApplicationError {
|
||||
description: string | null = null;
|
||||
|
||||
itemIndex: number | undefined = undefined;
|
||||
@@ -10,7 +12,7 @@ export class ExecutionError extends Error {
|
||||
lineNumber: number | undefined = undefined;
|
||||
|
||||
constructor(error: Error & { stack: string }, itemIndex?: number) {
|
||||
super();
|
||||
super(error.message);
|
||||
this.itemIndex = itemIndex;
|
||||
|
||||
if (this.itemIndex !== undefined) {
|
||||
|
||||
@@ -476,7 +476,7 @@ export class CoinGecko implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ export class Compression implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -363,7 +363,7 @@ export class Contentful implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -484,7 +484,7 @@ export class ConvertKit implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message, json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -618,7 +618,7 @@ export class Copper implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.toString(), json: {} });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ export class Cortex implements INodeType {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ export class Crypto implements INodeType {
|
||||
|
||||
returnData.push(newItem);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: (error as JsonObject).message,
|
||||
|
||||
@@ -335,7 +335,7 @@ export class CustomerIo implements INodeType {
|
||||
returnData.push(responseData as unknown as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -570,7 +570,7 @@ export class DateTimeV1 implements INodeType {
|
||||
returnData.push(newItem);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -218,7 +218,7 @@ export class DateTimeV2 implements INodeType {
|
||||
returnData.push(item);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -358,7 +358,7 @@ export class DebugHelper implements INodeType {
|
||||
break;
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -137,7 +137,7 @@ export class DeepL implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = {
|
||||
json: {} as IDataObject,
|
||||
error: error.message,
|
||||
|
||||
@@ -194,7 +194,7 @@ export class Demio implements INodeType {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ export class Dhl implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.description });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, 0));
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, 0));
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ export async function execute(
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
|
||||
} catch (error) {
|
||||
const err = parseDiscordError.call(this, error, i);
|
||||
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push(...prepareErrorData.call(this, err, i));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -443,7 +443,7 @@ export class Discourse implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -750,7 +750,7 @@ export class Disqus implements INodeType {
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -150,7 +150,7 @@ export class Drift implements INodeType {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({ error: error.message });
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1003,7 +1003,7 @@ export class Dropbox implements INodeType {
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
if (resource === 'file' && operation === 'download') {
|
||||
items[i].json = { error: error.message };
|
||||
} else {
|
||||
|
||||
@@ -1310,7 +1310,7 @@ export class EditImage implements INodeType {
|
||||
}),
|
||||
);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -733,7 +733,7 @@ export class Egoi implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (!this.continueOnFail()) {
|
||||
if (!this.continueOnFail(error)) {
|
||||
throw error;
|
||||
} else {
|
||||
// Return the actual reason as error
|
||||
|
||||
@@ -577,7 +577,7 @@ export class ElasticSecurity implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -226,7 +226,7 @@ export class EmailSendV1 implements INodeType {
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -324,7 +324,7 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -428,7 +428,7 @@ export class Emelia implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -112,7 +112,7 @@ export class ExecuteCommand implements INodeType {
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnItems.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -230,7 +230,7 @@ export class ExecuteWorkflow implements INodeType {
|
||||
returnData = [items];
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
return [[{ json: { error: error.message }, pairedItem: { item: i } }]];
|
||||
}
|
||||
throw new NodeOperationError(this.getNode(), error, {
|
||||
@@ -280,7 +280,7 @@ export class ExecuteWorkflow implements INodeType {
|
||||
return workflowResult;
|
||||
} catch (error) {
|
||||
const pairedItem = generatePairedItemData(items.length);
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
return [[{ json: { error: error.message }, pairedItem }]];
|
||||
}
|
||||
throw error;
|
||||
|
||||
@@ -410,7 +410,7 @@ export class FacebookGraphApi implements INodeType {
|
||||
// Now that the options are all set make the actual http request
|
||||
response = await this.helpers.request(requestOptions);
|
||||
} catch (error) {
|
||||
if (!this.continueOnFail()) {
|
||||
if (!this.continueOnFail(error)) {
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -809,7 +809,7 @@ export class FileMaker implements INodeType {
|
||||
}
|
||||
returnData.push({ json: response, pairedItem: { item: i } });
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: { error: error.message },
|
||||
pairedItem: { item: i },
|
||||
|
||||
@@ -110,7 +110,7 @@ export async function execute(
|
||||
|
||||
returnData = [newItem];
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -141,7 +141,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
|
||||
returnData.push(newItem);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -119,7 +119,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
|
||||
returnData = [newItem];
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
@@ -154,7 +154,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
|
||||
returnData.push(newItem);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -107,7 +107,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
|
||||
returnData.push(newItem);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -169,7 +169,7 @@ export async function execute(
|
||||
errorDescription =
|
||||
"Try to change the operation or select a JSON file in 'Input Binary Field'";
|
||||
}
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -122,7 +122,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
|
||||
returnData.push(newItem);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: error.message,
|
||||
|
||||
@@ -125,7 +125,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
filePath: fileSelector,
|
||||
operation: 'read',
|
||||
});
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: nodeOperatioinError.message,
|
||||
|
||||
@@ -103,7 +103,7 @@ export async function execute(this: IExecuteFunctions, items: INodeExecutionData
|
||||
filePath: fileName,
|
||||
operation: 'write',
|
||||
});
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
returnData.push({
|
||||
json: {
|
||||
error: nodeOperatioinError.message,
|
||||
|
||||
@@ -101,7 +101,7 @@ export class FilterV2 implements INodeType {
|
||||
discardedItems.push(item);
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
discardedItems.push(item);
|
||||
} else {
|
||||
throw error;
|
||||
|
||||
@@ -1409,7 +1409,7 @@ export class Freshdesk implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -1371,7 +1371,7 @@ export class Freshservice implements INodeType {
|
||||
responseData = responseData[special[resource]] ?? responseData[resource];
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
@@ -975,7 +975,7 @@ export class FreshworksCrm implements INodeType {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
if (this.continueOnFail(error)) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user