[GODRIVER-253] bson.Reader.Lookup should return ErrElementNotFound if no element is found Created: 20/Feb/18  Updated: 28/Oct/23  Resolved: 20/Feb/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.0.2

Type: Bug Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, bson.Reader.Lookup returns (nil, nil) if no element is found. For consistency with bson.Document, it should return (nil, ErrElementNotFound) in this case.



 Comments   
Comment by Githook User [ 20/Feb/18 ]

Author:

{'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}

Message: GODRIVER-253 change bson.Reader.Lookup to return ErrElementNotFound if no element is found

Change-Id: I584b72a8a4fe59c22c600649262cd3e247072853
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/1db79b1b40d50710294e766171dfaa68ae93c5f2

Comment by Samuel Rossi (Inactive) [ 20/Feb/18 ]

Code review url: https://review.gerrithub.io/c/400719/

Generated at Thu Feb 08 08:33:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.