[#288] pool: Fix lost err in fmt.Errorf

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-07-01 16:04:30 +04:00 committed by fyrchik
parent ab4d1e34a8
commit 86a447bc80

View file

@ -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 {