cmd/create: Don't wrap an empty error

Fallout from eedfdda535

https://github.com/containers/toolbox/pull/809
This commit is contained in:
Debarshi Ray 2021-06-23 22:46:37 +02:00
parent 1e823b74b3
commit 00b3741a3e

View file

@ -602,7 +602,7 @@ func getServiceSocket(serviceName string, unitName string) (string, error) {
listenVariant, listenFound := result["Listen"]
if !listenFound {
return "", fmt.Errorf("failed to find the Listen property of %s: %w", unitName, err)
return "", fmt.Errorf("failed to find the Listen property of %s", unitName)
}
listenVariantSignature := listenVariant.Signature().String()