From 98ab29e4fac466fba36a16aa21ccbde3c196fc2a Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Fri, 20 Apr 2018 16:48:41 -0400 Subject: [PATCH] fix(index): export MongoNetworkError --- index.js | 1 + 1 file changed, 1 insertion(+) 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');