mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
refactor(core): Skip sending webhook activation errors to Sentry (no-changelog) (#7171)
This commit is contained in:
committed by
GitHub
parent
07d072c28f
commit
ebce6fe1b0
@@ -104,7 +104,7 @@ const STATUS_CODE_MESSAGES: IStatusCodeMessages = {
|
||||
const UNKNOWN_ERROR_MESSAGE = 'UNKNOWN ERROR - check the detailed error for more information';
|
||||
const UNKNOWN_ERROR_MESSAGE_CRED = 'UNKNOWN ERROR';
|
||||
|
||||
type Severity = 'warning' | 'error';
|
||||
export type Severity = 'warning' | 'error';
|
||||
|
||||
interface ExecutionBaseErrorOptions {
|
||||
cause?: Error | JsonObject;
|
||||
@@ -136,6 +136,8 @@ export abstract class ExecutionBaseError extends Error {
|
||||
|
||||
lineNumber: number | undefined;
|
||||
|
||||
severity: Severity = 'error';
|
||||
|
||||
constructor(message: string, { cause }: ExecutionBaseErrorOptions) {
|
||||
const options = cause instanceof Error ? { cause } : {};
|
||||
super(message, options);
|
||||
@@ -171,8 +173,6 @@ export abstract class ExecutionBaseError extends Error {
|
||||
export abstract class NodeError extends ExecutionBaseError {
|
||||
node: INode;
|
||||
|
||||
severity: Severity = 'error';
|
||||
|
||||
constructor(node: INode, error: Error | JsonObject) {
|
||||
const message = error instanceof Error ? error.message : '';
|
||||
super(message, { cause: error });
|
||||
|
||||
Reference in New Issue
Block a user