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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.4.0
    • Component/s: None
    • None
    • Environment:
      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

      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

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

              Created:
              Updated:
              Resolved: