[GODRIVER-479] Typo - Error information lost / not returned in func Projection() Created: 30/Jun/18  Updated: 28/Oct/23  Resolved: 02/Jul/18

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: 0.0.8
Fix Version/s: 0.0.9

Type: Bug Priority: Major - P3
Reporter: Gregoire Pean Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Notice how we are returning nil instead of the actual error:

func (Options) Projection(projection interface{}) (option.OptProjection, error) {
	doc, err := TransformDocument(projection)
	if err != nil {
		return option.OptProjection{}, nil
	}
	opt := option.OptProjection{Projection: doc}
	return opt, nil
}



 Comments   
Comment by Divjot Arora (Inactive) [ 02/Jul/18 ]

Fixed because we no longer have mongo/options.go.

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