mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
🐛 Fixed ENOTFOUND error handling on NodeJS >=13
no issue
This commit is contained in:
parent
7ecd1067ba
commit
da7859c5e7
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ module.exports = class GhostMailer {
|
|||
handleDirectTransportResponse(response) {
|
||||
return new Promise((resolve, reject) => {
|
||||
response.statusHandler.once('failed', function (data) {
|
||||
if (data.error && data.error.errno === 'ENOTFOUND') {
|
||||
if (data.error && data.error.code === 'ENOTFOUND') {
|
||||
reject(createMailError({
|
||||
message: i18n.t('errors.mail.noMailServerAtAddress.error', {domain: data.domain})
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue