From 330ee8bfe638ef0a55ef0722e71d6d53a44c2655 Mon Sep 17 00:00:00 2001 From: Ben Moskovitz Date: Tue, 27 Aug 2024 13:32:32 +1200 Subject: [PATCH] Don't double-print errors when they occur --- cmd/bk/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bk/main.go b/cmd/bk/main.go index fdb8a3f9..22b6897e 100644 --- a/cmd/bk/main.go +++ b/cmd/bk/main.go @@ -30,7 +30,7 @@ func mainRun() int { } if err := rootCmd.ExecuteContext(ctx); err != nil { - fmt.Fprintf(os.Stderr, "failed to execute command: %s\n", err) + // Errors already get printed by the cobra command runner return 1 }