forked from TrueCloudLab/frostfs-s3-gw
Wrap gRPC errors
This commit is contained in:
parent
cba8cbd13c
commit
5254fd943b
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,6 @@ package layer
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
"errors"
|
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -14,6 +13,7 @@ import (
|
||||||
"github.com/nspcc-dev/neofs-api-go/refs"
|
"github.com/nspcc-dev/neofs-api-go/refs"
|
||||||
"github.com/nspcc-dev/neofs-api-go/service"
|
"github.com/nspcc-dev/neofs-api-go/service"
|
||||||
crypto "github.com/nspcc-dev/neofs-crypto"
|
crypto "github.com/nspcc-dev/neofs-crypto"
|
||||||
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
@ -67,7 +67,7 @@ func NewLayer(cli pool.Client, cred auth.Credentials) (minio.ObjectLayer, error)
|
||||||
until: math.MaxInt64,
|
until: math.MaxInt64,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.New("can't establish neofs session with remote host")
|
return nil, errors.Wrap(err, "can't establish neofs session with remote host")
|
||||||
}
|
}
|
||||||
|
|
||||||
return &neofsObject{
|
return &neofsObject{
|
||||||
|
|
Loading…
Reference in a new issue