From 9a664b515a2f86a313bd70af58de9210c7fcb04b Mon Sep 17 00:00:00 2001 From: Arianna Vespri Date: Wed, 20 Dec 2023 09:41:37 +0100 Subject: [PATCH] Correct order in error message Signed-off-by: Arianna Vespri --- model/textparse/protobufparse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/textparse/protobufparse.go b/model/textparse/protobufparse.go index c40176bcc..5ecdbf6ef 100644 --- a/model/textparse/protobufparse.go +++ b/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()