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

Erroring command replies should include stringified ErrorCode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 3.3.12
    • Usability
    • Minor Change

    Description

      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"
       }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: