From b70e6d2b278da06cb21aaa15dd697f61cc14f561 Mon Sep 17 00:00:00 2001 From: Karl Cardenas Date: Sun, 26 Nov 2023 20:31:33 -0700 Subject: [PATCH] test: added invalid custom file tests --- cmd/root.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 54c75f5..8608413 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -100,7 +100,10 @@ func init() { // Execute is the main execution function func Execute() { - rootCmd.Execute() + if err := rootCmd.Execute(); err != nil { + log.Error(err) + os.Exit(1) + } }