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

Mongo console will re-print a server error if a client JS parse error happens

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • None
    • None
    • 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
      mongodb-osx-x86_64-1.4.0

    Description

      If you execute a find() that fails on the server, then a statement with a JS parsing error on the client, the shell prints the previous server error a second time:

      > db.foo.find({$where:"x"})
      error: {
      "$err" : "error on invocation of $where function:
      JS Error: ReferenceError: x is not defined nofile_a:0"
      }

      > db.foo.find({$where})
      Tue Mar 30 11:34:04 JS Error: SyntaxError: missing : after property id (shell):0
      error on invocation of $where function:
      JS Error: ReferenceError: x is not defined nofile_a:0

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            mmastrac Matt Mastracci
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: