From 02fe22b18fc569027c7f67d0c8554ae291cfa63b Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 7 Jul 2026 10:24:59 +0200 Subject: [PATCH] satisfy linter --- pkg/es/ccr_follower.go | 4 ++-- pkg/es/errors.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/es/ccr_follower.go b/pkg/es/ccr_follower.go index 0096ff7..b2da1b7 100644 --- a/pkg/es/ccr_follower.go +++ b/pkg/es/ccr_follower.go @@ -152,11 +152,11 @@ func CcrFollowerShow(conf *cfg.Config, index string) error { slog.Debug("ES result", "follower stats", res.Indices) if len(res.Indices) == 0 { - return fmt.Errorf("cluster did not return any follower stats for index %w", index) + return fmt.Errorf("cluster did not return any follower stats for index %s", index) } if len(res.Indices[0].Shards) == 0 { - return fmt.Errorf("cluster did not return any shard stats on follower index %w", index) + return fmt.Errorf("cluster did not return any shard stats on follower index %s", index) } follower := res.Indices[0].Shards[0] diff --git a/pkg/es/errors.go b/pkg/es/errors.go index 5f43123..62d8e25 100644 --- a/pkg/es/errors.go +++ b/pkg/es/errors.go @@ -32,6 +32,8 @@ func esErrorString(err error) error { var causes strings.Builder for _, cause := range e.ErrorCause.RootCause { + // FIXME: re-activate linter here, see https://github.com/golangci/golangci-lint/issues/6662 + //nolint:all causes.WriteString(fmt.Sprintf("%s\n", *cause.Reason)) }