Skip to content

Commit

Permalink
chore(editor): Exclude codemirror range errors from Sentry (#12646)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsmr authored Jan 16, 2025
1 parent c7c122f commit 0b0f532
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/editor-ui/src/plugins/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0b0f532

Please sign in to comment.