Merge pull request #1382 from prometheus/beorn7/vendoring

Update common/expfmt vendoring
This commit is contained in:
Fabian Reinartz 2016-02-11 17:06:56 +01:00
commit 90b9fae638
2 changed files with 9 additions and 2 deletions

View File

@ -108,6 +108,13 @@ func (p *TextParser) TextToMetricFamilies(in io.Reader) (map[string]*dto.MetricF
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
}

4
vendor/vendor.json vendored
View File

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