From 789474906015337ba790d1781c6c1ec230f2edb7 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 11 Nov 2020 10:48:51 +0300 Subject: [PATCH] [#192] v2/netmap: Fix client error messages Signed-off-by: Alex Vanin --- v2/netmap/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/netmap/client.go b/v2/netmap/client.go index 6d375d79..b71533f2 100644 --- a/v2/netmap/client.go +++ b/v2/netmap/client.go @@ -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) {