microsoftgraph / msgraph-sdk-go-core

Microsoft Graph SDK for Go - Core Library
https://learn.microsoft.com/graph/sdks/sdks-overview
MIT License
20 stars 10 forks source link

How to pass error handler to PageIterator? #300

Closed cenkalti closed 4 months ago

cenkalti commented 5 months ago

https://github.com/microsoftgraph/msgraph-sdk-go-core/blob/074192752afc803d8ddbc21ad328e840d1599926/page_iterator.go#L163

The Adapter.Send() is called with a nil error handler mapping (last parameter). This makes it hard to see actual errors when using PageIterator.

Do you think it makes sense to add a new field or argument to PageIterator for the error mapping?