Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23501

Erroring command replies should include stringified ErrorCode

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.12
    • Affects Version/s: None
    • Component/s: Usability
    • Minor Change

      I think this would make it easier for users (and us) to understand the output from failing commands.

      Example of current output:

       {
       	"ok" : 0,
       	"code" : 9,
       	"errmsg" : "Unknown option to insert command: asdf"
       }
      

      Example of requested output:

       {
       	"ok" : 0,
       	"code" : 9,
       	"codeName" : "FailedToParse",
       	"errmsg" : "Unknown option to insert command: asdf"
       }
      

            Assignee:
            dorothy.chen Dorothy Chen
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: