When i execute below query in mongoshell i get uncaught exception. Should uncaught exception be displayed ? It doesn't show in the native Mongodb CLI
{
"opid" : "rs0:152224009",
"active" : true,
"lockType" : "read",
"waitingForLock" : false,
"secs_running" : 33,
"op" : "query",
"ns" : "solidcore.file",
"query" : {
"count" : "file",
"query" : {
"0" : {
"datemodified" : { "$gt" : "Tue Mar 26 40611 01:40:00 GMT-0400 (EDT)" }
}
}
},
"client_s" : "127.0.1.1:47484",
"desc" : "conn"
}
)
The following error msg is returned in version 2.4.4 of MongoDB CLI:
Thu Oct 10 08:51:00.951 JavaScript execution failed: field names cannot start with $ [$gt] at src/mongo/shell/collection.js:L147
It used to say "Uncaught Exception" in some other versions. It seems that they keep changing the format of this exception from version to version.
"JavaScript execution failed" does sound a bit more user friendly, but this is a very minor issue, and the true nature is that it really is an "Uncaught exception". Not sure if it's worth doing a patch for this.
Changed error message to match mongodb shell
Changed error message to match mongodb shell
Issue #10389 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 14.0.1-2 |
No time estimate |
The following error msg is returned in version 2.4.4 of MongoDB CLI:
It used to say "Uncaught Exception" in some other versions. It seems that they keep changing the format of this exception from version to version.
"JavaScript execution failed" does sound a bit more user friendly, but this is a very minor issue, and the true nature is that it really is an "Uncaught exception". Not sure if it's worth doing a patch for this.