Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-253

bson.Reader.Lookup should return ErrElementNotFound if no element is found

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.2
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: