Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit bf6b815

Browse files
Human readable messages for ehostunreach, nsdomain, econnreset
1 parent c8ce3a4 commit bf6b815

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rabbit_amqp091_shovel.erl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,14 @@ human_readable_connection_error(unknown_host) ->
363363
"unknown host (failed to resolve hostname)";
364364
human_readable_connection_error(econnrefused) ->
365365
"connection to target host was refused (ECONNREFUSED)";
366+
human_readable_connection_error(econnreset) ->
367+
"connection to target host was reset by peer (ECONNRESET)";
366368
human_readable_connection_error(etimedout) ->
367369
"connection to target host timed out (ETIMEDOUT)";
370+
human_readable_connection_error(ehostunreach) ->
371+
"target host is unreachable (EHOSTUNREACH)";
372+
human_readable_connection_error(nxdomain) ->
373+
"target hostname cannot be resolved (NXDOMAIN)";
368374
human_readable_connection_error(eacces) ->
369375
"connection to target host failed with EACCES. "
370376
"This may be due to insufficient RabbitMQ process permissions or "

0 commit comments

Comments
 (0)