refactor(core): Do not report Unrecognized node/credential type errors to Sentry (no-changelog) (#13822)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-03-11 11:32:47 +01:00
committed by GitHub
parent 2c08fc0519
commit ec76505a87
3 changed files with 5 additions and 9 deletions

View File

@@ -190,7 +190,7 @@ export class ErrorReporter {
'cause' in originalException &&
originalException.cause instanceof Error &&
'level' in originalException.cause &&
originalException.cause.level === 'warning'
(originalException.cause.level === 'warning' || originalException.cause.level === 'info')
) {
// handle underlying errors propagating from dependencies like ai-assistant-sdk
return null;

View File

@@ -1,8 +1,6 @@
import { ApplicationError } from 'n8n-workflow';
export class UnrecognizedCredentialTypeError extends ApplicationError {
severity = 'warning';
import { UserError } from 'n8n-workflow';
export class UnrecognizedCredentialTypeError extends UserError {
constructor(credentialType: string) {
super(`Unrecognized credential type: ${credentialType}`);
}

View File

@@ -1,8 +1,6 @@
import { ApplicationError } from 'n8n-workflow';
export class UnrecognizedNodeTypeError extends ApplicationError {
severity = 'warning';
import { UserError } from 'n8n-workflow';
export class UnrecognizedNodeTypeError extends UserError {
constructor(packageName: string, nodeType: string) {
super(`Unrecognized node type: ${packageName}.${nodeType}`);
}