From 7f231770fde534990d8a873420c1eb8cd828edc7 Mon Sep 17 00:00:00 2001 From: Leonardo Cecchi Date: Fri, 29 Nov 2024 14:08:37 +0100 Subject: [PATCH] chore: refinements Signed-off-by: Leonardo Cecchi --- internal/cmd/healthcheck/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/healthcheck/main.go b/internal/cmd/healthcheck/main.go index 4977e34..efc86a9 100644 --- a/internal/cmd/healthcheck/main.go +++ b/internal/cmd/healthcheck/main.go @@ -29,7 +29,7 @@ func NewCmd() *cobra.Command { func unixHealthCheck() *cobra.Command { cmd := &cobra.Command{ Use: "unix", - Short: "unix healthcheck", + Short: "executes the health check command on unix:///plugins/barman-cloud.cloudnative-pg.io", RunE: func(cmd *cobra.Command, _ []string) error { dialPath := fmt.Sprintf("unix://%s", path.Join("/plugins", metadata.PluginName)) cli, cliErr := grpc.NewClient(dialPath, grpc.WithTransportCredentials(insecure.NewCredentials())) @@ -54,7 +54,7 @@ func unixHealthCheck() *cobra.Command { return nil } - log.Error(fmt.Errorf("unexpected healthcheck response: %v", res.Status), + log.Error(fmt.Errorf("unexpected healthcheck status: %v", res.Status), "while processing healthcheck response") // exit code 1 is returned when we exit from the function with an error