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
goraph uses errors.New() to create errors to signal missing graph nodes in numerous places. e.g.
return fmt.Errorf("%s does not exist in the graph.", id1)
It would be better to create specific error type instead. This would reduce code duplication and would allow callers to distinguish missing nodes from other things that may have go wrong when using the library.
The text was updated successfully, but these errors were encountered:
goraph uses
errors.New()
to create errors to signal missing graph nodes in numerous places. e.g.return fmt.Errorf("%s does not exist in the graph.", id1)
It would be better to create specific error type instead. This would reduce code duplication and would allow callers to distinguish missing nodes from other things that may have go wrong when using the library.
The text was updated successfully, but these errors were encountered: