Consistently throw when result of command has ok: 0

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.3.1
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • Needed
    • Hide

      Whenever the server returns

      {ok: 0}

      , shell helpers will throw an exception (MongoshCommandFailed). so something like `db.serverBuildInfo.ok` won't make sense since if ok was 0 it would throw

      db.runCommand will not throw, or db.coll.runCommand and will only return whatever the server returns.

      Show
      Whenever the server returns {ok: 0} , shell helpers will throw an exception (MongoshCommandFailed). so something like `db.serverBuildInfo.ok` won't make sense since if ok was 0 it would throw db.runCommand will not throw, or db.coll.runCommand and will only return whatever the server returns.

      Throw for all shell helpers (except runCommand) if the result `ok: 0`, or figure out what exactly we want to do and document it.

              Assignee:
              Anna Herlihy (Inactive)
              Reporter:
              Anna Herlihy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: