forked from TrueCloudLab/frostfs-sdk-go
09ed6077f9
Client errors are quite often wrapped in context. When checking a specific error, it is required not to lose the ability to determine it, regardless of the attached context. In previous implementation `IsErr*` functions didn't support wrapped errors. Make `IsErr*` functions to preliminarily unwrap `error` argument before type assertion. Use `errors.Unwrap` for this instead of `errors.As` since the latter has the overhead of filling in an error. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru> |
||
---|---|---|
.. | ||
status | ||
accounting.go | ||
client.go | ||
common.go | ||
container.go | ||
doc.go | ||
errors.go | ||
errors_test.go | ||
netmap.go | ||
object_delete.go | ||
object_get.go | ||
object_hash.go | ||
object_put.go | ||
object_search.go | ||
object_search_test.go | ||
reputation.go | ||
response.go | ||
session.go |