Skip to content

Commit 7fcf5c5

Browse files
committed
make debugging findAndModify easier for SERVER-6675
1 parent abe98a5 commit 7fcf5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo/shell/collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ DBCollection.prototype.findAndModify = function(args){
383383
if (ret.errmsg == "No matching object found"){
384384
return null;
385385
}
386-
throw "findAndModifyFailed failed: " + tojson( ret.errmsg );
386+
throw "findAndModifyFailed failed: " + tojson( ret );
387387
}
388388
return ret.value;
389389
}

0 commit comments

Comments
 (0)