From 9fbdc4b75247ee5b4eb95cdb70cbfd0898574ef6 Mon Sep 17 00:00:00 2001 From: Phillip Baker <phillbaker@retrodict.com> Date: Wed, 15 Sep 2021 22:37:28 -0400 Subject: [PATCH] [provider] Add version in parsing logs. --- es/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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