You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: