Commit 0cc82bed authored by Nico Baruna Putra's avatar Nico Baruna Putra

remove error handler exit

parent a5a6ecd7
...@@ -65,14 +65,14 @@ func main() { ...@@ -65,14 +65,14 @@ func main() {
func checkApi() { func checkApi() {
response, err := http.Get(BASE_URL + API_URL) response, _ := http.Get(BASE_URL + API_URL)
if err != nil { // if err != nil {
fmt.Print(err.Error()) // fmt.Print(err.Error())
sendMail("API not response") // sendMail("API not response")
Native() // Native()
//os.Exit(1) // //os.Exit(1)
} // }
if response.StatusCode != 200 { if response.StatusCode != 200 {
sendMail("API not response") sendMail("API not response")
Native() Native()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment