lib/protoparser/prometheus: typo fix in error message

This commit is contained in:
Aliaksandr Valialkin 2020-08-14 11:04:00 +03:00
parent f4c90449dc
commit c82a485cf6

View File

@ -61,7 +61,7 @@ func (ctx *streamContext) Read(r io.Reader) bool {
} else { } else {
if ctx.err != io.EOF { if ctx.err != io.EOF {
readErrors.Inc() 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 return false
} }