Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5762

Make MongoMissingDependencyError more useful

    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      How are you using Mongo? What version of the server and driver are you using?

      I’m a mongosh developer.

      What is the feature/improvement you would like?

      It would be very neat if MongoMissingDependencyError were more programmatically accessible. Specifically:

      • It should expose the name of the missing package as a property
      • It should consistently use the cause property to expose the original error and not just do this for some errors

      What use case would this feature/improvement enable?

      Right now, it would make it easier for mongosh to display a meaningful error message when Kerberos loading fails. With the default driver error message, users cannot distinguish between a broken Kerberos npm package and missing Kerberos system libraries.

      Acceptance Criteria

      • Expose the name of the missing dependency as a string property on the `MongoMissingDependencyError` class.
      • When we attempt to load a dependency and fail, provide the `cause` to the `MongoMissingDependencyError`

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: