From f987fba525ba8f5de29715083650b6c913b9aad4 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 4 Jan 2023 15:49:57 -0500 Subject: [PATCH] remove repeated error message on failure (#921) --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index bad1da750f..1ebc24abf8 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,6 @@ package main import ( "context" - "log" "os" "os/signal" @@ -29,6 +28,6 @@ func main() { ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt) defer stop() if err := commands.Root.ExecuteContext(ctx); err != nil { - log.Fatal("error during command execution:", err) + os.Exit(1) } }