Skip to content

Commit

Permalink
fix: update error message for more than 1 instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
stijzermans committed Sep 5, 2024
1 parent 63a8102 commit e0ff9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (c *Controller) getPrometheus(ctx context.Context) (promv1.PrometheusInterf
return nil, errors.New("no Prometheus or PrometheusAgent found in namespace " + ns)
}
if len(instances) > 1 {
return nil, errors.New("more than one Prometheus or PrometheusAgent instance found with name " + promName)
return nil, errors.New("more than one Prometheus or PrometheusAgent instance found in namespace " + ns + ".")
}

return instances[0], nil
Expand Down

0 comments on commit e0ff9fc

Please sign in to comment.