Javascript code should throw instances of Error instead of strings.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.7.1
    • Affects Version/s: None
    • Component/s: JavaScript, Shell
    • None
    • Server 2.7.1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            David Hows (Inactive)
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: