From 3b6b9e93969fea8149ff2254926b1a80a313b9b4 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 28 Aug 2020 19:14:15 +0200 Subject: [PATCH] cmd/initContainer: Fix typo Fallout from 772b66bf3e962785730e55f6242fa74066de0743 https://github.com/containers/toolbox/pull/545 --- src/cmd/initContainer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/initContainer.go b/src/cmd/initContainer.go index 5e247135c..8c56285b1 100644 --- a/src/cmd/initContainer.go +++ b/src/cmd/initContainer.go @@ -242,7 +242,7 @@ func initContainer(cmd *cobra.Command, args []string) error { sudoGroup, err := utils.GetGroupForSudo() if err != nil { - return fmt.Errorf("failed to add user %s: %s", initContainerFlags.user, err) + return fmt.Errorf("failed to get group for sudo: %w", err) } logrus.Debugf("Adding user %s with UID %d:", initContainerFlags.user, initContainerFlags.uid)