From c1c2a19842cb283aa150fbee562785507cbb9193 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Fri, 22 Jun 2018 19:15:12 +0530 Subject: [PATCH] utils_misc.go: print error on fatal exit --- api/utils_misc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/utils_misc.go b/api/utils_misc.go index 3aca03e..e40f46d 100644 --- a/api/utils_misc.go +++ b/api/utils_misc.go @@ -2,6 +2,7 @@ package main import ( "bytes" + "fmt" "os" ) @@ -11,6 +12,7 @@ func concat(a bytes.Buffer, b bytes.Buffer) []byte { func exitIfError(err error) { if err != nil { + fmt.Printf("fatal error: %v\n", err) os.Exit(1) } }