mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(core): Stop reporting EAUTH error codes to Sentry (no-changelog) (#9496)
This commit is contained in:
@@ -32,6 +32,20 @@ export class WorkflowActivationError extends ExecutionBaseError {
|
||||
this.node = node;
|
||||
this.workflowId = workflowId;
|
||||
this.message = message;
|
||||
if (level) this.level = level;
|
||||
this.setLevel(level);
|
||||
}
|
||||
|
||||
private setLevel(level?: ApplicationError['level']) {
|
||||
if (level) {
|
||||
this.level = level;
|
||||
return;
|
||||
}
|
||||
|
||||
if (['ETIMEDOUT', 'ECONNREFUSED', 'EAUTH'].some((code) => this.message.includes(code))) {
|
||||
this.level = 'warning';
|
||||
return;
|
||||
}
|
||||
|
||||
this.level = 'error';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user