mongodb/mongodb-erlang — pull request #23 by ptan-iswifter (2013-04-08 19:11:30+00:00)
Title: Handle the new error code 16550 from mongoDB 2.4

After upgrading mongoDB to 2.4, whenever the database throws "assertion 16550 not authorized for query on :", this driver returns bad_query instead of unauthorized for the caller to handle.

This patch captures error code 16550 and throws unauthorized.