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

remove error handler exit

parent a5a6ecd7
......@@ -65,14 +65,14 @@ func main() {
func checkApi() {
response, err := http.Get(BASE_URL + API_URL)
if err != nil {
fmt.Print(err.Error())
sendMail("API not response")
Native()
//os.Exit(1)
}
response, _ := http.Get(BASE_URL + API_URL)
// if err != nil {
// fmt.Print(err.Error())
// sendMail("API not response")
// Native()
// //os.Exit(1)
// }
if response.StatusCode != 200 {
sendMail("API not response")
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