0
Fork 0
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:
Thibaut Patel 2021-02-23 19:37:03 +01:00
parent 7ecd1067ba
commit da7859c5e7

View file

@ -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})
}));