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

Report specific keys for invalid update documents

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: errors
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: