Omit "Undefined" code for any writeError in the shell

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A write to a secondary node fails with the following:

      WriteResult({ "writeError" : { "code" : undefined, "errmsg" : "not master" } })
      

      There should be a a defined code for every error.

      If the code is "undefined", then omit it from the writeError.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Jonathan Abrahams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: