-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
None
-
Affects Version/s: 1.8.1
-
Component/s: Internal Client
-
Labels:None
-
Environment:linux, ubuntu lucyd.
-
ALL
Request:
{ "findAndModify" : "points", "query" :
, "update" : { "$set" :
{ < SOME FIELDS HERE > } }, "new" : true, "upsert" : false }
Result:
As far as mongo C++ driver does not throw exceptions and every command has it's own way to report errors I prefer to use getLastErrorDetailed() where possible. But unfortunately it reports that there was no error:
{ "n" : 0, "connectionId" : 88, "err" : null, "ok" : 1 }Please, make C++ driver to report error is only one way. It would especially good if it would be exceptions. I'm really frustrated to find out that one part of my application has crashed with very strange error because there is another one way to report error which my magic checker does not know about.