From d927893d72d20c1f619ebfe2b06327fa56c36784 Mon Sep 17 00:00:00 2001 From: Abhisheke Acharya Date: Sun, 31 Dec 2023 21:22:54 +0530 Subject: [PATCH] Add errCheck where it was overlooked --- cmd/root.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 6175ae5..cf1c42b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -35,9 +35,8 @@ func Execute() error { } } - if err := rootCmd.Execute(); err != nil { - return err - } + err := rootCmd.Execute() + errCheck(err) fmt.Println("Athena v1.0.0 Starting") fmt.Println("Getting Configuration File: ", configFile, "...")