diff --git a/utils/config.go b/utils/config.go index 1091aa1..cc3a39c 100644 --- a/utils/config.go +++ b/utils/config.go @@ -274,7 +274,7 @@ func GetDefaultKubeConfig() string { } // check if file exists in kubeconfig if _, err := os.Stat(kubeconfig); os.IsNotExist(err) { - logger.Log.Fatalf("$KUBECONFIG is empty and default context cannot be loaded. Please set $KUBECONFIG or use --context flag to proceed.") + logger.Log.Fatalf("Error: $KUBECONFIG is not set, and the default Kubernetes context cannot be loaded. The $KUBECONFIG environment variable specifies the kubeconfig file path, which is essential for connecting to your Kubernetes cluster. To resolve this, please set $KUBECONFIG by using 'kubectx' for easier context switching or by manually specifying the path to your kubeconfig file. For detailed instructions on configuring your kubeconfig, please refer to https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/.") } return kubeconfig }