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

Normalize command return values on error.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Usability
    • None
    • Fully Compatible

    Description

      When a command fails, the response object currently contains various combinations of the following fields:

      'err'
      'errmsg'
      'assertion'
      'code'
      'assertionCode'

      For example, see the return value for:
      db.runCommand(

      {forceerror: 1}

      )

      This is a bit awkward from a client perspective. Can we normalize on 'err' and 'code'? If the different fields indicate different kinds of errors, we should specify that in yet another field, e.g., 'errorType'.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            kbanker Kyle Banker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: