-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Error Handling
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
There are a few places in the Go Driver where we can improve the usability of Context errors:
In both places, we explicitly return context.Canceled instead of the error from the passed-in Context. We should return ctx.Err() instead to preserve errors returned by custom Context implementations.
Definition of done
Pitfalls
What should the implementer watch out for? What are the risks?