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

Javascript code should throw instances of Error instead of strings.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.1
    • None
    • JavaScript, Shell
    • None
    • Server 2.7.1

    Description

      Instances of Error have a stack trace in addition to a message, which could then be printed if the exception reaches the top of the call stack. Presently, the MongoDB javascript code in the shell and in the server throws a mix of strings and Errors.

      Attachments

        Activity

          People

            david.hows David Hows
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: