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

Javascript code should throw instances of Error instead of strings.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7.1
    • 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

        Issue Links

          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: