From 0b0f532367997f31dd68e9dc19af640e49b5749e Mon Sep 17 00:00:00 2001 From: Elias Meire Date: Thu, 16 Jan 2025 18:17:13 +0100 Subject: [PATCH] chore(editor): Exclude codemirror range errors from Sentry (#12646) --- packages/editor-ui/src/plugins/sentry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/editor-ui/src/plugins/sentry.ts b/packages/editor-ui/src/plugins/sentry.ts index 7347459fb5..dac25cd05c 100644 --- a/packages/editor-ui/src/plugins/sentry.ts +++ b/packages/editor-ui/src/plugins/sentry.ts @@ -8,6 +8,9 @@ const ignoredErrors = [ { instanceof: ResponseError, message: /ECONNREFUSED/ }, { instanceof: ResponseError, message: "Can't connect to n8n." }, { instanceof: ResponseError, message: 'Unauthorized' }, + { instanceof: RangeError, message: /Position \d+ is out of range for changeset of length \d+/ }, + { instanceof: RangeError, message: /Invalid change range \d+ to \d+/ }, + { instanceof: RangeError, message: /Selection points outside of document$/ }, { instanceof: Error, message: /ResizeObserver/ }, ] as const;