From 86a447bc80718841827b2dee3ee9f0ba6f152717 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Fri, 1 Jul 2022 16:04:30 +0400 Subject: [PATCH] [#288] pool: Fix lost err in fmt.Errorf Signed-off-by: Angira Kekteeva --- pool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/pool.go b/pool/pool.go index 6e65f9c5..04d3a49c 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -1403,7 +1403,7 @@ func (p *Pool) PutObject(ctx context.Context, prm PrmObjectPut) (*oid.ID, error) ctxCall.Context = ctx if err := p.initCallContext(&ctxCall, prm.prmCommon, prmCtx); err != nil { - return nil, fmt.Errorf("init call context") + return nil, fmt.Errorf("init call context: %w", err) } if ctxCall.sessionDefault {