Commit 75222dde authored by Nico Baruna Putra's avatar Nico Baruna Putra

remove error handler exit

parent 0cc82bed
...@@ -6,6 +6,7 @@ import ( ...@@ -6,6 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"
"os"
"os/exec" "os/exec"
"time" "time"
...@@ -65,14 +66,14 @@ func main() { ...@@ -65,14 +66,14 @@ func main() {
func checkApi() { func checkApi() {
response, _ := http.Get(BASE_URL + API_URL) response, err := 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()
......
No preview for this file type
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