Skip to content

Commit

Permalink
fix: added MongoServerError to code bug check
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 11, 2024
1 parent d54e362 commit a9d86ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers/is-mongo-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function isMongoError(err) {
(isErrorConstructorName(err, 'MongooseError') &&
!isErrorConstructorName(err, 'ValidationError')) ||
isErrorConstructorName(err, 'MongoError') ||
isErrorConstructorName(err, 'MongoServerError') ||
isErrorConstructorName(err, 'MongoBulkWriteError') ||
isErrorConstructorName(err, 'MongoNetworkError') ||
isErrorConstructorName(err, 'MongoNotConnectedError') ||
Expand Down

0 comments on commit a9d86ef

Please sign in to comment.