Mongo shell does not retain error code when generating JavaScript exception

XMLWordPrintableJSON

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

      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:
            [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: