From d81fbc64efbcbbccab78a8887591b06be069b9fc Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Sat, 9 Jan 2021 16:40:57 +0100 Subject: [PATCH] Handle update error Signed-off-by: Lukas Bachschwell --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 7d84e3c..f3b3a8b 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,12 @@ func main() { os.Exit(1) } else if os.Args[1] == "upgrade" { fmt.Print("Trying Upgrade... ") - update(gitTag) + err := update(gitTag) + if err != nil { + fmt.Println(err) + } else { + fmt.Println("Success") + } } else if os.Args[1] == "version" { fmt.Print("Version ") fmt.Println(gitTag)