From f7a646ef452c74b2317acd11aef6c7b24d3915d5 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Thu, 19 Sep 2024 07:01:16 -0500 Subject: [PATCH] core/config/toml: include value in InsecureConnection error message --- core/config/toml/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config/toml/types.go b/core/config/toml/types.go index 2eb66d10a9f..497e33d5ddd 100644 --- a/core/config/toml/types.go +++ b/core/config/toml/types.go @@ -1695,7 +1695,7 @@ func (b *Telemetry) ValidateConfig() (err error) { } if b.InsecureConnection != nil && *b.InsecureConnection { if build.IsProd() { - err = multierr.Append(err, configutils.ErrInvalid{Name: "InsecureConnection", Msg: "cannot be used in production builds"}) + err = multierr.Append(err, configutils.ErrInvalid{Name: "InsecureConnection", Value: true, Msg: "cannot be used in production builds"}) } } else { if b.CACertFile == nil || *b.CACertFile == "" {