Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(errors): export MongoError and MongoNetworkError at top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Hallum Clarke authored and mbroadst committed Aug 6, 2017
1 parent c953246 commit 972064a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ try {
} catch(err) {}

module.exports = {
MongoError: require('./lib/error')
MongoError: require('./lib/error').MongoError
, MongoNetworkError: require('./lib/error').MongoNetworkError
, Connection: require('./lib/connection/connection')
, Server: require('./lib/topologies/server')
, ReplSet: require('./lib/topologies/replset')
Expand Down

0 comments on commit 972064a

Please sign in to comment.