mongodb/node-mongodb-native — pull request #839 by aheckmann (2013-01-07 18:02:11+00:00)
Title: utils.toError

- Adds `utils.toError` which assumes responsibility for converting arguments to instanceof Error. This functionality had nothing to do with the `Db` class (but still exists for backward compat).
- Add tests for converting arguments to Error.
- Now properly handles case where instanceof Error is passed.