mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +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 &&
|
'cause' in originalException &&
|
||||||
originalException.cause instanceof Error &&
|
originalException.cause instanceof Error &&
|
||||||
'level' in originalException.cause &&
|
'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
|
// handle underlying errors propagating from dependencies like ai-assistant-sdk
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import { ApplicationError } from 'n8n-workflow';
|
import { UserError } from 'n8n-workflow';
|
||||||
|
|
||||||
export class UnrecognizedCredentialTypeError extends ApplicationError {
|
|
||||||
severity = 'warning';
|
|
||||||
|
|
||||||
|
export class UnrecognizedCredentialTypeError extends UserError {
|
||||||
constructor(credentialType: string) {
|
constructor(credentialType: string) {
|
||||||
super(`Unrecognized credential type: ${credentialType}`);
|
super(`Unrecognized credential type: ${credentialType}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import { ApplicationError } from 'n8n-workflow';
|
import { UserError } from 'n8n-workflow';
|
||||||
|
|
||||||
export class UnrecognizedNodeTypeError extends ApplicationError {
|
|
||||||
severity = 'warning';
|
|
||||||
|
|
||||||
|
export class UnrecognizedNodeTypeError extends UserError {
|
||||||
constructor(packageName: string, nodeType: string) {
|
constructor(packageName: string, nodeType: string) {
|
||||||
super(`Unrecognized node type: ${packageName}.${nodeType}`);
|
super(`Unrecognized node type: ${packageName}.${nodeType}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user