Commit 715ea75c authored by Robert Jacob's avatar Robert Jacob

Fix issue in error output.

parent 710dbe46
......@@ -158,7 +158,7 @@ func collectSimpleMetrics(ch chan<- prometheus.Metric, status serverinfo.ServerI
for _, m := range metrics {
metric, err := prometheus.NewConstMetric(m.desc, prometheus.GaugeValue, m.value)
if err != nil {
return fmt.Errorf("error creating metric for %s: %s", usersDesc.String(), err)
return fmt.Errorf("error creating metric for %s: %s", m.desc, err)
}
ch <- metric
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment