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

@@ -335,7 +335,7 @@ export class MySqlV1 implements INodeType {
[] as INodeExecutionData[],
);
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnItems = this.helpers.returnJsonArray({ error: error.message });
} else {
await connection.end();
@@ -372,7 +372,7 @@ export class MySqlV1 implements INodeType {
returnItems = this.helpers.returnJsonArray(queryResult[0] as unknown as IDataObject);
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnItems = this.helpers.returnJsonArray({ error: error.message });
} else {
await connection.end();
@@ -407,7 +407,7 @@ export class MySqlV1 implements INodeType {
queryResult.map((result) => result[0]) as unknown as IDataObject[],
);
} catch (error) {
if (this.continueOnFail()) {
if (this.continueOnFail(error)) {
returnItems = this.helpers.returnJsonArray({ error: error.message });
} else {
await connection.end();