Skip to content

Commit

Permalink
fix(typo): Fixed typo in network error response
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jan 19, 2024
1 parent 59edd20 commit 2d3616d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/get-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2d3616d

Please sign in to comment.