-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
There are a few locations in the code base where a MongoError is used as a MongoServerError. Since the type signature of MongoServerError is changing to require errorResponse (a property not found in MongoError), the Node driver needs to be more careful in its type checking.
Acceptance Criteria
Implementation Requirements
- Type check rather than type cast the two instances where MongoError is used instead of MongoServerError
Testing Requirements
- Ensure all existing tests pass