Include underlying err.reason as err.cause for MongooseServerSelectionError #15416
Closed
2 tasks done
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
new feature
This change adds new functionality, like a new method or class
Milestone
Prerequisites
🚀 Feature Proposal
The
atlasMessage
that overwrites the error message can make it difficult to actually troubleshoot certain errors.Can we include the original
err.reason
as theError.cause
?Motivation
No response
Example
No response
The text was updated successfully, but these errors were encountered: