From 2d3616dff1d91c587f69d9c1ea9798e87b0cd56b Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 19 Jan 2024 10:54:44 +0200 Subject: [PATCH] fix(typo): Fixed typo in network error response --- lib/get-connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);