forked from TrueCloudLab/frostfs-node
[#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
|
@ -2,9 +2,9 @@ package session
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/session"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
type ServiceExecutor interface {
|
||||
|
@ -25,7 +25,7 @@ func NewExecutionService(exec ServiceExecutor) Server {
|
|||
func (s *executorSvc) Create(ctx context.Context, req *session.CreateRequest) (*session.CreateResponse, error) {
|
||||
respBody, err := s.exec.Create(ctx, req.GetBody())
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not execute Create request")
|
||||
return nil, fmt.Errorf("could not execute Create request: %w", err)
|
||||
}
|
||||
|
||||
resp := new(session.CreateResponse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue