-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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