mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(core): Prevent reporting to Sentry IMAP server error (no-changelog) (#9515)
This commit is contained in:
@@ -41,7 +41,14 @@ export class WorkflowActivationError extends ExecutionBaseError {
|
||||
return;
|
||||
}
|
||||
|
||||
if (['ETIMEDOUT', 'ECONNREFUSED', 'EAUTH'].some((code) => this.message.includes(code))) {
|
||||
if (
|
||||
[
|
||||
'etimedout', // Node.js
|
||||
'econnrefused', // Node.js
|
||||
'eauth', // OAuth
|
||||
'temporary authentication failure', // IMAP server
|
||||
].some((str) => this.message.toLowerCase().includes(str))
|
||||
) {
|
||||
this.level = 'warning';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user