summaryrefslogtreecommitdiff
path: root/lib/megaco/src
diff options
context:
space:
mode:
authorMicael Karlberg <bmk@erlang.org>2021-12-02 18:26:41 +0100
committerMicael Karlberg <bmk@erlang.org>2021-12-02 18:26:41 +0100
commit8633084be016f3e00c16e0b4dff79e6a0b563242 (patch)
tree51ba6d5415382d25254aa5e462ab23a0cf36a9fe /lib/megaco/src
parent3833c61faf675bbe9b773409a4b6a2ec67e6b2a8 (diff)
downloaderlang-8633084be016f3e00c16e0b4dff79e6a0b563242.tar.gz
[megaco] Include more info in error reason when connect fails
This is mostly to simplify debugging. OTP-17817
Diffstat (limited to 'lib/megaco/src')
-rw-r--r--lib/megaco/src/tcp/megaco_tcp.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/megaco/src/tcp/megaco_tcp.erl b/lib/megaco/src/tcp/megaco_tcp.erl
index 460e679efc..6ff8e5793f 100644
--- a/lib/megaco/src/tcp/megaco_tcp.erl
+++ b/lib/megaco/src/tcp/megaco_tcp.erl
@@ -217,14 +217,14 @@ connect(SupPid, Parameters) ->
{error, Reason} ->
?d1("connect -> failed connecting: "
"~n Reason: ~p", [Reason]),
- Error = {error, {gen_tcp_connect, Reason}},
+ Error = {error, {gen_tcp_connect, Reason, {Host, Port, IpOpt}}},
?tcp_debug(Rec, "tcp connect failed", [Error]),
Error;
{'EXIT', _Reason} = Exit ->
?d1("connect -> connect exited: "
"~n Exit: ~p", [Exit]),
- Error = {error, {gen_tcp_connect, Exit}},
+ Error = {error, {gen_tcp_connect, Exit, {Host, Port, IpOpt}}},
?tcp_debug(Rec, "tcp connect failed", [Error]),
Error