Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error with description when node of requested type is unavailable #3

Open
sidh opened this issue Apr 8, 2021 · 0 comments
Open
Assignees

Comments

@sidh
Copy link
Collaborator

sidh commented Apr 8, 2021

Functions like Primary return node and nothing else. If nil is returned it is very hard to understand why exactly it happened - you have to parse logs (if you have those), etc.

We need another set of functions returning both node and error describing why exactly requested node is unavailable.

When we have enough API changes to warrant v2 we should think about removing old versions of these functions leaving only one variant.

@sidh sidh self-assigned this Apr 8, 2021
@sidh sidh changed the title Return error with description when no requested node available Return error with description when node of requested type is unavailable Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant