Skip to content

Commit 7d218b6

Browse files
committed
fixed host parameter
1 parent e7e9533 commit 7d218b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/error.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ defmodule Mongo.Error do
1414

1515
def exception(tag: :tcp, action: action, reason: reason, host: host) do
1616
formatted_reason = :inet.format_error(reason)
17-
%Mongo.Error{message: "#{host} tcp #{action}: #{formatted_reason} - #{inspect(reason)}"}
17+
%Mongo.Error{message: "#{host} tcp #{action}: #{formatted_reason} - #{inspect(reason)}", host: host}
1818
end
1919

2020
def exception(tag: :ssl, action: action, reason: reason, host: host) do
2121
formatted_reason = :ssl.format_error(reason)
22-
%Mongo.Error{message: "#{host} ssl #{action}: #{formatted_reason} - #{inspect(reason)}"}
22+
%Mongo.Error{message: "#{host} ssl #{action}: #{formatted_reason} - #{inspect(reason)}", host: host}
2323
end
2424

2525
def exception(message: message, code: code) do

0 commit comments

Comments
 (0)