Skip to content

Commit

Permalink
chore: capture error when kubernetes watch fails
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jul 3, 2024
1 parent 705ee54 commit 0eef191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/kubernetes/events_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 0eef191

Please sign in to comment.