From fdf9416d4fdd3eab2740de63c4f32a615007daa7 Mon Sep 17 00:00:00 2001 From: Joe Elliott Date: Thu, 11 Feb 2021 07:26:09 -0500 Subject: [PATCH] fixed panics (#6) Signed-off-by: Joe Elliott --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index ce702b5e45d..27cbb15c983 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -42,12 +42,12 @@ func Execute() { RunE: func(cmd *cobra.Command, args []string) error { if err := cfg.Validate(); err != nil { - cfg.Logger.Error(err, "invalid configuration: %w", err) + cfg.Logger.Error(err, "invalid configuration") return nil } if err := cfg.ParseModules(); err != nil { - cfg.Logger.Error(err, "invalid module configuration: %w", err) + cfg.Logger.Error(err, "invalid module configuration") return nil }