better exit

This commit is contained in:
simonkellet 2022-07-25 13:56:19 +01:00
parent 05c80dd5a0
commit 6f5ab2ded6

View File

@ -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!