Skip to content

Commit

Permalink
Merge pull request #413 from kubescape/feature/improve-error
Browse files Browse the repository at this point in the history
Adding improved error message
  • Loading branch information
amitschendel authored Nov 24, 2024
2 parents 4200522 + bdc8764 commit db79644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ func getContainerRuntimeSocketPath(clientset *k8sinterface.KubernetesApi, nodeNa
}
socketPath, found := strings.CutPrefix(kubeletConfig.ContainerRuntimeEndpoint, "unix://")
if !found {
return "", fmt.Errorf("socket path does not start with unix://")
return "", fmt.Errorf("socket path does not start with unix:// %s", helpers.String("socketPath", kubeletConfig.ContainerRuntimeEndpoint))
}
logger.L().Info("using the detected container runtime socket path from Kubelet's config", helpers.String("socketPath", socketPath))
return socketPath, nil
Expand Down

0 comments on commit db79644

Please sign in to comment.