mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Correct order in error message
Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
This commit is contained in:
parent
51e78d9a32
commit
9a664b515a
|
@ -430,7 +430,7 @@ func (p *ProtobufParser) Next() (Entry, error) {
|
||||||
sfx = fmt.Sprintf("_%s_total", unit)
|
sfx = fmt.Sprintf("_%s_total", unit)
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(name, sfx) {
|
if !strings.HasSuffix(name, sfx) {
|
||||||
return EntryInvalid, fmt.Errorf("unit %q not a suffix of metric %q", name, unit)
|
return EntryInvalid, fmt.Errorf("unit %q not a suffix of metric %q", unit, name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p.metricBytes.Reset()
|
p.metricBytes.Reset()
|
||||||
|
|
Loading…
Reference in a new issue