From 7a775c42a1b88fcf7e68bbca76ccacb16eb81e8d Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Sun, 6 Jan 2019 22:06:56 +0100 Subject: [PATCH] use log.Fatal instead of panic --- cmd/utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/utils.go b/cmd/utils.go index 2478c046..bd741998 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -19,8 +19,7 @@ import ( func checkErr(err error) { if err != nil { - fmt.Println(err) - os.Exit(1) + log.Fatal(err) } }