When creating a new Mongo connection to a shard in a test (such as `let host = new Mongo(st.shard0.host);`), the error code thrown while creating the connection is converted into an internal error. This has already been changed by SERVER-87954 to return the correct error code when TLS parameters are specified. We should extend this so that we always return an accurate error code.
- is related to
-
SERVER-87954 Create ReplSetTest node-specific log and error capturing utilities to report connection status
-
- Closed
-