Skip to content

Commit

Permalink
[provider] Add version in parsing logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillbaker committed Sep 25, 2021
1 parent c024dc4 commit 9fbdc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fbdc4b

Please sign in to comment.