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

Normalize command return values on error.

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • Labels:
      None
    • Fully Compatible

      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'.

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

              Created:
              Updated:
              Resolved: