Skip to content

Commit 6027f6c

Browse files
committed
fixed #60
1 parent 0fc48f1 commit 6027f6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mongo/topology.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@ defmodule Mongo.Topology do
289289
{:ok, {address, _opts}} ->
290290
with {:ok, connection} <- get_connection(address, state) do
291291
{:reply, {:ok, connection}, state}
292+
else
293+
error -> {:reply, error, state} ## in case of an error, just return the error
292294
end
293-
error ->
294-
{:reply, error, state} ## in case of an error, just return the error
295+
error -> {:reply, error, state} ## in case of an error, just return the error
295296
end
296297
end
297298

0 commit comments

Comments
 (0)