diff --git a/es/provider.go b/es/provider.go index 4ee7cfea..47c78c78 100644 --- a/es/provider.go +++ b/es/provider.go @@ -354,7 +354,7 @@ func getClient(conf *ProviderConf) (interface{}, error) { return nil, err } } else if conf.esVersion < "6.0.0" { - return nil, errors.New("ElasticSearch older than 6.0.0 is not supported.") + return nil, fmt.Errorf("ElasticSearch version %s is older than 6.0.0 and is not supported.", conf.esVersion) } return relevantClient, nil