better exit
This commit is contained in:
parent
05c80dd5a0
commit
6f5ab2ded6
1
main.go
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…
x
Reference in New Issue
Block a user