From 3fcfb7ee05194def97b0bbc2f941d07b3667d9c8 Mon Sep 17 00:00:00 2001 From: Alex Buchanan Date: Fri, 8 Nov 2024 11:48:12 -0800 Subject: [PATCH] debug log error --- internal/cmd/local/k8s/provider.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/cmd/local/k8s/provider.go b/internal/cmd/local/k8s/provider.go index 7f8f1e3..77ce968 100644 --- a/internal/cmd/local/k8s/provider.go +++ b/internal/cmd/local/k8s/provider.go @@ -35,7 +35,9 @@ func (p Provider) Cluster(ctx context.Context) (Cluster, error) { } kindProvider := cluster.NewProvider(cluster.ProviderWithLogger(&kindLogger{pterm: pterm.Debug})) - kindProvider.ExportKubeConfig(p.ClusterName, p.Kubeconfig, false) + if err := kindProvider.ExportKubeConfig(p.ClusterName, p.Kubeconfig, false); err != nil { + pterm.Debug.Printfln("failed to export kube config: %s", err) + } return &kindCluster{ p: kindProvider,