From 6f5ab2ded66524aa28b17681248579420a769dc7 Mon Sep 17 00:00:00 2001 From: simonkellet Date: Mon, 25 Jul 2022 13:56:19 +0100 Subject: [PATCH] better exit --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 52792f4..26ae6c6 100644 --- a/main.go +++ b/main.go @@ -30,6 +30,7 @@ func main() { data, err := loadJson("weather.json") if err != nil { fmt.Println("Cannot load weather.json file!") + os.Exit(1) } //Print the weather!