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

Syntax errors do not provide character or line of error

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.9
    • None
    • JavaScript, Shell
    • None
    • Fully Compatible
    • Platform A (10/09/15)

    Description

      When an unexpected character is encountered, for example, I receive an error like this:

      Thu Aug 13 18:35:18.777 SyntaxError: Unexpected token ILLEGAL

      I'm currently dealing with a very large query that's almost 100 lines. It is very difficult to find this character because I do not even know what the character is.

      The shell should provide useful information for the user like showing the failed character and where the character was encountered.

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            jpancoast John Pancoast
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: