Skip to content

Include underlying err.reason as err.cause for MongooseServerSelectionError #15416

Closed
@alexbevi

Description

@alexbevi

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 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 the Error.cause?

Motivation

No response

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new featurenew featureThis change adds new functionality, like a new method or class

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions