From c82a485cf63a25fb07090f3261e5f234433caab5 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 14 Aug 2020 11:04:00 +0300 Subject: [PATCH] lib/protoparser/prometheus: typo fix in error message --- lib/protoparser/prometheus/streamparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protoparser/prometheus/streamparser.go b/lib/protoparser/prometheus/streamparser.go index 6d51170f4..fc87227b6 100644 --- a/lib/protoparser/prometheus/streamparser.go +++ b/lib/protoparser/prometheus/streamparser.go @@ -61,7 +61,7 @@ func (ctx *streamContext) Read(r io.Reader) bool { } else { if ctx.err != io.EOF { readErrors.Inc() - ctx.err = fmt.Errorf("cannot read graphite plaintext protocol data: %w", ctx.err) + ctx.err = fmt.Errorf("cannot read Prometheus exposition data: %w", ctx.err) } return false }