Skip to content

Commit

Permalink
fix(index): export MongoNetworkError
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Apr 20, 2018
1 parent b20e64a commit 98ab29e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const connect = require('./lib/mongo_client').connect;

// Expose error class
connect.MongoError = core.MongoError;
connect.MongoNetworkError = core.MongoNetworkError;

// Actual driver classes exported
connect.Admin = require('./lib/admin');
Expand Down

0 comments on commit 98ab29e

Please sign in to comment.