libpod: don't capitalize error string

This fixes the following warning:

> libpod/networking_freebsd.go:148:19: ST1005: error strings should not be capitalized (staticcheck)
> 		return "", nil, fmt.Errorf("Failed to create vnet jail %s for container %s: %w", netns, ctr.ID(), err)
> 		                ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-04-01 14:37:24 -07:00
parent 66c7efdb6b
commit 0eea1cb297

View File

@ -145,7 +145,7 @@ func (r *Runtime) createNetNS(ctr *Container) (n string, q map[string]types.Stat
jconf.Set("securelevel", -1) jconf.Set("securelevel", -1)
j, err := jail.Create(jconf) j, err := jail.Create(jconf)
if err != nil { if err != nil {
return "", nil, fmt.Errorf("Failed to create vnet jail %s for container %s: %w", netns, ctr.ID(), err) return "", nil, fmt.Errorf("failed to create vnet jail %s for container %s: %w", netns, ctr.ID(), err)
} }
logrus.Debugf("Created vnet jail %s for container %s", netns, ctr.ID()) logrus.Debugf("Created vnet jail %s for container %s", netns, ctr.ID())