From 7f89ff03f83e0a090a6593e5358c6be00fea1243 Mon Sep 17 00:00:00 2001 From: Aziz Ishan-Khojaev Date: Fri, 9 Feb 2024 15:13:39 +0100 Subject: [PATCH] os.Exit(1) instead of panic --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index a581268..908741f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -265,7 +265,7 @@ func main() { panic(err) } logger.Error("failed executing root command", "error", err) - panic(err) + os.Exit(1) } }