Skip to content

Commit 585a698

Browse files
authored
Merge branch 'master' into js/error-wrapping
2 parents 158abe7 + 5827e4f commit 585a698

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/grpc/client/adapters/mint/connection_process/connection_process.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,18 @@ defmodule GRPC.Client.Adapters.Mint.ConnectionProcess do
8181
{:ok, State.new(conn, opts[:parent])}
8282

8383
{:error, reason} ->
84-
Logger.error("unable to establish a connection. reason: #{inspect(reason)}")
84+
Logger.error(
85+
"unable to establish a connection to #{scheme}://#{host}:#{port}. reason: #{inspect(reason)}"
86+
)
87+
8588
{:stop, reason}
8689
end
8790
catch
8891
:exit, reason ->
89-
Logger.error("unable to establish a connection. reason: #{inspect(reason)}")
92+
Logger.error(
93+
"unable to establish a connection to #{scheme}://#{host}:#{port}. reason: #{inspect(reason)}"
94+
)
95+
9096
{:stop, reason}
9197
end
9298

0 commit comments

Comments
 (0)