Skip to content

Commit bdc8764

Browse files
committed
Adding improved error message
Signed-off-by: Amit Schendel <[email protected]>
1 parent 4200522 commit bdc8764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ func getContainerRuntimeSocketPath(clientset *k8sinterface.KubernetesApi, nodeNa
750750
}
751751
socketPath, found := strings.CutPrefix(kubeletConfig.ContainerRuntimeEndpoint, "unix://")
752752
if !found {
753-
return "", fmt.Errorf("socket path does not start with unix://")
753+
return "", fmt.Errorf("socket path does not start with unix:// %s", helpers.String("socketPath", kubeletConfig.ContainerRuntimeEndpoint))
754754
}
755755
logger.L().Info("using the detected container runtime socket path from Kubelet's config", helpers.String("socketPath", socketPath))
756756
return socketPath, nil

0 commit comments

Comments
 (0)