We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe98a5 commit 7fcf5c5Copy full SHA for 7fcf5c5
src/mongo/shell/collection.js
@@ -383,7 +383,7 @@ DBCollection.prototype.findAndModify = function(args){
383
if (ret.errmsg == "No matching object found"){
384
return null;
385
}
386
- throw "findAndModifyFailed failed: " + tojson( ret.errmsg );
+ throw "findAndModifyFailed failed: " + tojson( ret );
387
388
return ret.value;
389
0 commit comments