Update common/expfmt vendoring

pull/1382/head
beorn7 9 years ago
parent 83c5ef7c03
commit 6946fb2058

@ -108,6 +108,13 @@ func (p *TextParser) TextToMetricFamilies(in io.Reader) (map[string]*dto.MetricF
delete(p.metricFamiliesByName, k) delete(p.metricFamiliesByName, k)
} }
} }
// If p.err is io.EOF now, we have run into a premature end of the input
// stream. Turn this error into something nicer and more
// meaningful. (io.EOF is often used as a signal for the legitimate end
// of an input stream.)
if p.err == io.EOF {
p.parseError("unexpected end of input stream")
}
return p.metricFamiliesByName, p.err return p.metricFamiliesByName, p.err
} }

@ -159,8 +159,8 @@
}, },
{ {
"path": "github.com/prometheus/common/expfmt", "path": "github.com/prometheus/common/expfmt",
"revision": "56b90312e937d43b930f06a59bf0d6a4ae1944bc", "revision": "23070236b1ebff452f494ae831569545c2b61d26",
"revisionTime": "2015-12-09T21:44:25+01:00" "revisionTime": "2016-02-11T16:03:55+01:00"
}, },
{ {
"path": "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg", "path": "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg",

Loading…
Cancel
Save