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

Commits on Aug 3, 2023

  1. node: Process API client errors according to NeoFS SDK RC-9 docs

    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]>
    cthulhu-rider committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f728cf3 View commit details
    Browse the repository at this point in the history
  2. cli: Handle client's internal server error according to NeoFS SDK RC-9

    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]>
    cthulhu-rider committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    6cedb25 View commit details
    Browse the repository at this point in the history