forked from TrueCloudLab/frostfs-api-go
[#192] v2/netmap: Fix client error messages
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
abed8a9156
commit
7894749060
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ type localNodeInfoClient struct {
|
|||
func (c *Client) LocalNodeInfo(ctx context.Context, req *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error) {
|
||||
resp, err := c.cLocalNodeInfo.caller(ctx, c.cLocalNodeInfo.requestConverter(req))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not send container put request")
|
||||
return nil, errors.Wrap(err, "could not send local node info request")
|
||||
}
|
||||
|
||||
return c.cLocalNodeInfo.responseConverter(resp), nil
|
||||
|
@ -93,7 +93,7 @@ func NewClient(opts ...Option) (*Client, error) {
|
|||
err = client.ErrProtoUnsupported
|
||||
}
|
||||
|
||||
return nil, errors.Wrapf(err, "could not create %s Session client", cfg.proto)
|
||||
return nil, errors.Wrapf(err, "could not create %s Netmap client", cfg.proto)
|
||||
}
|
||||
|
||||
func newGRPCClient(cfg *cfg) (*netmap.Client, error) {
|
||||
|
|
Loading…
Reference in a new issue