Merge pull request #1720 from allencloud/allencloud-patch-1

Improve error message
This commit is contained in:
David Ashpole 2017-08-23 18:02:06 -07:00 committed by GitHub
commit bcc6f2d23d

View File

@ -72,7 +72,7 @@ func NewPrometheusCollector(collectorName string, configFile []byte, metricCount
}
if metricCountLimit < 0 {
return nil, fmt.Errorf("Metric count limit must be greater than 0")
return nil, fmt.Errorf("Metric count limit must be greater than or equal to 0")
}
var metricsSet map[string]bool