feat: Do not show errors not processed by n8n (no-changelog) (#9598)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Michael Kret
2024-06-20 08:45:00 +03:00
committed by GitHub
parent 4740162232
commit b7aea957b8
317 changed files with 471 additions and 454 deletions

View File

@@ -396,7 +396,7 @@ export class NocoDB implements INodeType {
returnData.push(...body);
}
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnData.push({ error: error.toString() });
}
throw new NodeApiError(this.getNode(), error as JsonObject);
@@ -459,7 +459,7 @@ export class NocoDB implements INodeType {
returnData.push(...responseData);
}
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnData.push({ error: error.toString() });
}
throw new NodeApiError(this.getNode(), error as JsonObject);
@@ -532,7 +532,7 @@ export class NocoDB implements INodeType {
return [data];
}
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnData.push({ json: { error: error.toString() } });
} else {
throw error;
@@ -608,7 +608,7 @@ export class NocoDB implements INodeType {
newItems.push(...executionData);
}
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray({ error: error.toString() }),
{ itemData: { item: i } },
@@ -750,7 +750,7 @@ export class NocoDB implements INodeType {
returnData.push(...body);
}
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnData.push({ error: error.toString() });
}
throw new NodeApiError(this.getNode(), error as JsonObject);