From bedc09369941d6bb8dced0e23ddbb3608a2c41e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kotowski?= Date: Fri, 29 Nov 2024 22:16:41 +0100 Subject: [PATCH] fix: remove doubled error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit spf13/cobra already handles printing of non-nil error on stderr, the removed print was repeating the same message on stdout after cobra printed both the error and usage. Signed-off-by: MichaƂ Kotowski --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 4ab2af1..4f1a72d 100644 --- a/main.go +++ b/main.go @@ -29,7 +29,6 @@ var ( func main() { if err := cmd().Execute(); err != nil { - fmt.Println(err) os.Exit(1) } }