better exit

master
simonkellet 2 years ago
parent 05c80dd5a0
commit 6f5ab2ded6
  1. 1
      main.go

@ -30,6 +30,7 @@ func main() {
data, err := loadJson("weather.json") data, err := loadJson("weather.json")
if err != nil { if err != nil {
fmt.Println("Cannot load weather.json file!") fmt.Println("Cannot load weather.json file!")
os.Exit(1)
} }
//Print the weather! //Print the weather!

Loading…
Cancel
Save