diff --git a/staging/src/k8s.io/metrics/pkg/client/custom_metrics/client.go b/staging/src/k8s.io/metrics/pkg/client/custom_metrics/client.go index b6ea4cc8dd6..12e280c3cea 100644 --- a/staging/src/k8s.io/metrics/pkg/client/custom_metrics/client.go +++ b/staging/src/k8s.io/metrics/pkg/client/custom_metrics/client.go @@ -216,7 +216,7 @@ func (m *namespacedMetrics) GetForObject(groupKind schema.GroupKind, name string } if len(res.Items) != 1 { - return nil, fmt.Errorf("the custom metrics API server returned %v results when we asked for exactly one") + return nil, fmt.Errorf("the custom metrics API server returned %v results when we asked for exactly one", len(res.Items)) } return &res.Items[0], nil