diff --git a/scrapers/kubernetes/events_watch.go b/scrapers/kubernetes/events_watch.go index 6afe3250..9c824ea8 100644 --- a/scrapers/kubernetes/events_watch.go +++ b/scrapers/kubernetes/events_watch.go @@ -103,7 +103,7 @@ func WatchEvents(ctx api.ScrapeContext, config v1.Kubernetes) error { var err error ctx, _, err = applyKubeconfig(ctx, *config.Kubeconfig) if err != nil { - return fmt.Errorf("failed to apply kube config") + return fmt.Errorf("failed to apply kube config: %w", err) } }