-
I've spotted a few spots in the library where errors are vanished ( (I'm a complete noob when it comes to golang, so maybe this is just a common convention or w/ever, feel free to shut this down if so) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @Blokyk, thanks for the question. Sometimes, this is done on purpose to avoid callers depending on specific sentinels, but it could be that the cases you've spotted were simply mistakes. We tend to call out specific error returns in the godoc string (e.g. |
Beta Was this translation helpful? Give feedback.
Hi @Blokyk, thanks for the question. Sometimes, this is done on purpose to avoid callers depending on specific sentinels, but it could be that the cases you've spotted were simply mistakes.
We tend to call out specific error returns in the godoc string (e.g.
this returns [ErrNotSupported] if ...
), as well as having specific tests for them, since they're basically part of the API contract. Please file an issue and/or a PR if you'd like to make some changes.