How to capture error message from ReplaceOneAsync/findOneAndReplaceAsync method

I’m using MongoDB with .Net 6. And I’m trying to update some details (updateObject) based on id and version field. However, sometimes it doesn’t update because sometimes any one of the condition doesn’t match.
Is there any way to find out which key(condition - id or version) did not match and caused update failure.
I want this to be done in single database call.