From 1b85fb9e423c0558dad7b7d7890f93b3278c1e14 Mon Sep 17 00:00:00 2001 From: Andrew Pennebaker Date: Mon, 15 Jan 2024 21:32:15 -0600 Subject: [PATCH] fix error handling --- cmd/tug/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/tug/main.go b/cmd/tug/main.go index 947e8a3..0b4e8e1 100644 --- a/cmd/tug/main.go +++ b/cmd/tug/main.go @@ -125,7 +125,8 @@ func main() { job.Directory = args[0] } - if err2 := job.Run(); err != nil { - panic(err2) + if err2 := job.Run(); err2 != nil { + fmt.Println(err2) + os.Exit(1) } }