Be specific about required csv header definition (#5007)

This commit is contained in:
Greg 2018-11-19 12:27:21 -07:00 committed by Daniel Nelson
parent 7a779a7550
commit 9c9511bde9
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ func newCSVParser(metricName string,
defaultTags map[string]string) (Parser, error) {
if headerRowCount == 0 && len(columnNames) == 0 {
return nil, fmt.Errorf("there must be a header if `csv_column_names` is not specified")
return nil, fmt.Errorf("`csv_header_row_count` must be defined if `csv_column_names` is not specified")
}
if delimiter != "" {