Correct order in error message

Signed-off-by: Arianna Vespri <arianna.vespri@yahoo.it>
pull/13299/head
Arianna Vespri 2 years ago
parent 51e78d9a32
commit 9a664b515a
  1. 2
      model/textparse/protobufparse.go

@ -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()

Loading…
Cancel
Save