From 8f7ef965ea6b8d17f6348d718da4c0be62aadbcd Mon Sep 17 00:00:00 2001 From: zachaller Date: Thu, 15 Jun 2023 10:46:16 -0500 Subject: [PATCH] better error message Signed-off-by: zachaller --- analysis/analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/analysis.go b/analysis/analysis.go index e46618a93f..92ea36c983 100644 --- a/analysis/analysis.go +++ b/analysis/analysis.go @@ -713,7 +713,7 @@ func (c *Controller) garbageCollectMeasurements(run *v1alpha1.AnalysisRun, measu resolvedArgsMetric, err := getResolvedMetricsWithoutSecrets(run.Spec.Metrics, run.Spec.Args) if err != nil { - return fmt.Errorf("failed to resolve metrics during garbage collection: %w", err) + return fmt.Errorf("failed to resolve args on metric during garbage collection: %w", err) } metricsByName := make(map[string]v1alpha1.Metric)