Skip to content

Commit

Permalink
fix: suppress capacity errors to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Aug 13, 2020
1 parent 2d46057 commit 63b4e51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -1836,7 +1836,9 @@ class ForwardEmail {
err.message.includes('DNS blacklist') &&
err.responseCode &&
err.responseCode === 554) ||
(err && err.responseCode && err.responseCode < 500)
(err &&
err.responseCode &&
(err.responseCode < 500 || err.responseCode === 452))
? 'warn'
: 'error'
](err, { session });
Expand Down

0 comments on commit 63b4e51

Please sign in to comment.