Skip to content

Commit

Permalink
Correct order in error message
Browse files Browse the repository at this point in the history
Signed-off-by: Arianna Vespri <[email protected]>
  • Loading branch information
vesari committed Dec 20, 2023
1 parent 51e78d9 commit 9a664b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/textparse/protobufparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9a664b5

Please sign in to comment.