Skip to content

Commit 94abd15

Browse files
committed
updated readme and changelog
1 parent 4318ef7 commit 94abd15

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* Enhancements
44
* Added `op_msg` support ([See](https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#op-msg))
5+
* Fixed change streams in case of error codes: 11601, 136 and 237 from resuming
6+
* Reorganized error handling
57

68
## v0.5.1
79

@@ -10,9 +12,9 @@
1012
* Refactored code, simplified code and api
1113
* Replaced deprecated op_code by database commands
1214
* Update_one, update_many, replace_one, replace_many return upserted ids
13-
* Support for all find options
14-
* Support for MongoDB 3.6 collection [Change Streams](https://docs.mongodb.com/manual/changeStreams/)
15-
* Support for SCRAM-SHA-256 (MongoDB 4.x)
15+
* Add support for all find options
16+
* Add support for MongoDB 3.6 collection [Change Streams](https://docs.mongodb.com/manual/changeStreams/)
17+
* Ass support for SCRAM-SHA-256 (MongoDB 4.x)
1618

1719
## v0.4.8-dev
1820

lib/mongo.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ defmodule Mongo do
574574
end
575575

576576
defp check_for_error(%{"ok" => ok} = response) when ok == 1, do: {:ok, response}
577-
defp check_for_error(%{"code" => code, "errmsg" => msg} = err), do: {:error, Mongo.Error.exception(message: msg, code: code)}
577+
defp check_for_error(%{"code" => code, "errmsg" => msg}), do: {:error, Mongo.Error.exception(message: msg, code: code)}
578578

579579
@doc """
580580
Returns the current wire version.

0 commit comments

Comments
 (0)