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

Handle client errors according to NeoFS SDK RC-9 #2469

Closed
wants to merge 2 commits into from

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Aug 3, 2023

test reports cannot be posted in NeoFS from PR from the forked repo, and source branch cannot be changed

Currently used SDK revision changed/improved docs and UX of error
handling. Storage node missed these changes on SDK upgrade, so we have
to adjust to them.

Use `errors.Is` when exact error structure is not needed. Actualize docs
of errors returned by internal client.

Fixes #2465.

Signed-off-by: Leonard Lyubich <[email protected]>
We don't have to use `errors.As` to just check error type now,
`errors.Is` is more appropriate for this.

Signed-off-by: Leonard Lyubich <[email protected]>
@roman-khimov roman-khimov deleted the bugfix/client-errors branch October 2, 2023 14:25
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

Successfully merging this pull request may close these issues.

1 participant