File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ defmodule Mongo.Error do
14
14
15
15
def exception ( tag: :tcp , action: action , reason: reason , host: host ) do
16
16
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 }
18
18
end
19
19
20
20
def exception ( tag: :ssl , action: action , reason: reason , host: host ) do
21
21
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 }
23
23
end
24
24
25
25
def exception ( message: message , code: code ) do
You can’t perform that action at this time.
0 commit comments