Skip to content

Commit 7ee381b

Browse files
committed
fixed #23
1 parent 4a2ed6a commit 7ee381b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mongo/cursor.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ defmodule Mongo.Cursor do
301301
fn
302302
state(cursor: 0) -> :ok
303303
state(cursor: cursor, coll: coll, conn: conn) -> kill_cursors(conn, only_coll(coll), [cursor], opts)
304+
{:error, error} = error -> error
304305
end
305306
end
306307

0 commit comments

Comments
 (0)