From f2892bb83136856c455cd2e89f9967a57aa1a4c8 Mon Sep 17 00:00:00 2001 From: shawnps Date: Sat, 7 Feb 2015 15:01:59 -0800 Subject: [PATCH] add log statement for error, uncomment update link --- main.go | 1 + templates/home.html | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index e52e99b..c799fa9 100644 --- a/main.go +++ b/main.go @@ -233,6 +233,7 @@ func checkHandler(w http.ResponseWriter, r *http.Request) { forceRefresh := r.Method != "GET" // if this is a GET request, try fetch from cached version in mongo first resp, err := newChecksResp(repo, forceRefresh) if err != nil { + log.Println("ERROR: ", err) b, _ := json.Marshal(err) w.WriteHeader(http.StatusInternalServerError) w.Write(b) diff --git a/templates/home.html b/templates/home.html index 2b6d33b..333b1c6 100644 --- a/templates/home.html +++ b/templates/home.html @@ -258,12 +258,10 @@