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

Mongo shell does not retain error code when generating JavaScript exception

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Development Platform
    • ALL
    • 20

      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!

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: