diff --git a/lib/get-connection.js b/lib/get-connection.js index cf4144d..3f76848 100644 --- a/lib/get-connection.js +++ b/lib/get-connection.js @@ -56,7 +56,7 @@ function getConnection(delivery) { error = delivery.mxLastError; } else { error = new Error(`Connection to the Mail Exchange (MX) server of "${delivery.domain}" failed`); - error.response = `Netowrk error: ${error.message}`; + error.response = `Network error: ${error.message}`; error.category = 'network'; error.temporary = true; } @@ -228,7 +228,7 @@ function getConnection(delivery) { err.message = `Network error when connecting to MX server ${mx.hostname}[${mx.host}] for ${delivery.domain}: ${ netErrors[err.code] || netErrors[err.errno] || err.message }`; - err.response = err.response || `Netowrk error: ${err.message}`; + err.response = err.response || `Network error: ${err.message}`; err.category = err.category || 'network'; err.temporary = true; emitConnectError(err);