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

Mongo shell does not retain error code when generating JavaScript exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Linked BF Score:
      20

      Description

      BF-19854 seems to have failed because an error thrown by the mongo shell does not contain an error code (the error is thrown here, and we check for the error code explicitly here). It looks like we only preserve the errmsg here. We should be including the error code as well.

      As a temporary fix for the BF, we filed SERVER-54184. This change should eventually be removed when this ticket (SERVER-54026) is completed (TODO here).

      Assigning this to STM, as I'm under the impression that the shell is owned by them. Feel free to reassign if it makes sense!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-stm Backlog - Server Tooling and Methods (STM)
              Reporter:
              ali.mir Ali Mir
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: