Correct order in error message

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
This commit is contained in:
Arianna Vespri 2023-12-20 09:41:37 +01:00
parent 51e78d9a32
commit 9a664b515a
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ func (p *ProtobufParser) Next() (Entry, error) {
sfx = fmt.Sprintf("_%s_total", unit)
}
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()