Skip to content

Commit 9fbdc4b

Browse files
committed
[provider] Add version in parsing logs.
1 parent c024dc4 commit 9fbdc4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

es/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func getClient(conf *ProviderConf) (interface{}, error) {
354354
return nil, err
355355
}
356356
} else if conf.esVersion < "6.0.0" {
357-
return nil, errors.New("ElasticSearch older than 6.0.0 is not supported.")
357+
return nil, fmt.Errorf("ElasticSearch version %s is older than 6.0.0 and is not supported.", conf.esVersion)
358358
}
359359

360360
return relevantClient, nil

0 commit comments

Comments
 (0)