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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/bugfix/681-fix_acl_parsing
Leonard Lyubich 2022-06-16 23:49:23 +03:00 committed by Alex Vanin
parent f0749fd23e
commit 08a33ff2d9
1 changed files with 1 additions and 1 deletions

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