From 08a33ff2d960a68112d5c5d6c60e358577f5a6e3 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 16 Jun 2022 23:49:23 +0300 Subject: [PATCH] [#539] authmate: Add context to the container creation failure Signed-off-by: Leonard Lyubich --- authmate/authmate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authmate/authmate.go b/authmate/authmate.go index 9ed639f..2f3cca7 100644 --- a/authmate/authmate.go +++ b/authmate/authmate.go @@ -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