Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1802

Report specific keys for invalid update documents

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • None
    • errors
    • None

    Description

      If an update document includes non dollar sign keys, the error message is generic: "update only works with $ operators".

      It would help users understand the message if it included the name of the invalid key. E.g. "Invalid key 'foo': update only works with $ operators"

      This request is inspired by the user support question in CXX-1090. A clearer message might have allowed the user to answer their own question without a ticket.

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: