mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Do not report Unrecognized node/credential type errors to Sentry (no-changelog) (#13822)
This commit is contained in:
committed by
GitHub
parent
2c08fc0519
commit
ec76505a87
@@ -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;
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user