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

Commit 972064a

Browse files
Sebastian Hallum Clarkembroadst
Sebastian Hallum Clarke
authored andcommitted
fix(errors): export MongoError and MongoNetworkError at top-level
1 parent c953246 commit 972064a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ try {
1212
} catch(err) {}
1313

1414
module.exports = {
15-
MongoError: require('./lib/error')
15+
MongoError: require('./lib/error').MongoError
16+
, MongoNetworkError: require('./lib/error').MongoNetworkError
1617
, Connection: require('./lib/connection/connection')
1718
, Server: require('./lib/topologies/server')
1819
, ReplSet: require('./lib/topologies/replset')

0 commit comments

Comments
 (0)