fix: Prevent errors processed by n8n to be flagged as internal (no-changelog) (#10023)

This commit is contained in:
Michael Kret
2024-07-12 11:13:17 +03:00
committed by GitHub
parent 1d2b403644
commit e2dd000d13
8 changed files with 105 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
export class ValidationError extends Error {
import { ApplicationError } from 'n8n-workflow';
export class ValidationError extends ApplicationError {
description = '';
itemIndex: number | undefined = undefined;
@@ -18,7 +20,7 @@ export class ValidationError extends Error {
itemIndex?: number;
lineNumber?: number;
}) {
super();
super(message);
this.lineNumber = lineNumber;
this.itemIndex = itemIndex;