Skip to content

Commit

Permalink
core/config/toml: include value in InsecureConnection error message (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Sep 19, 2024
1 parent ef5b9a7 commit 66bced9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/config/toml/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 66bced9

Please sign in to comment.