[#539] authmate: Add context to the container creation failure

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-06-16 23:49:23 +03:00 committed by Alex Vanin
parent f0749fd23e
commit 08a33ff2d9

View file

@ -159,7 +159,7 @@ func (a *Agent) checkContainer(ctx context.Context, opts ContainerOptions, idOwn
cnrID, err := a.neoFS.CreateContainer(ctx, prm)
if err != nil {
return nil, err
return nil, fmt.Errorf("create container in NeoFS: %w", err)
}
return cnrID, nil