diff --git a/index.js b/index.js index a17361e940..1b07292888 100644 --- a/index.js +++ b/index.js @@ -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');