Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-710

Make apiVersion error message more actionable

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • 0.14.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Not Needed
    • Iteration Chicago

      Can we (and should we) intercept the driver's error message for missing API version and customize it to make it more actionable for mongosh users?

      Right now, it says:

      MongoError: The apiVersion parameter is required, please configure your MongoClient's API version

      It'd be nice if we could say something like:

      MongoError: The apiVersion parameter is required, please run mongosh with the --apiVersion parameter.

      I do see that we get the same error message also for Mongo(). Maybe we can come up with some copy that works in both cases. I believe that configure your MongoClient is confusing because MongoClient is not a thing for a mongosh user.

            Assignee:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: