[#521] *: use stdlib errors
package
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
43e575cec2
commit
71b87155ef
171 changed files with 825 additions and 674 deletions
|
@ -1,8 +1,9 @@
|
|||
package wrapper
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// Epoch receives number of current NeoFS epoch
|
||||
|
@ -12,7 +13,7 @@ func (w *Wrapper) Epoch() (uint64, error) {
|
|||
|
||||
vals, err := w.client.Epoch(args)
|
||||
if err != nil {
|
||||
return 0, errors.Wrapf(err, "(%T) could not get epoch number", w)
|
||||
return 0, fmt.Errorf("(%T) could not get epoch number: %w", w, err)
|
||||
}
|
||||
|
||||
return uint64(vals.Number()), nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue