diff --git a/resque_exporter.go b/resque_exporter.go index 992c9ce..87ec082 100644 --- a/resque_exporter.go +++ b/resque_exporter.go @@ -351,7 +351,7 @@ func main() { http.Handle(*metricPath, promhttp.HandlerFor(reg, promhttp.HandlerOpts{Registry: reg})) http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte(` + _, err := w.Write([]byte(` Resque Exporter

Resque Exporter

@@ -359,6 +359,10 @@ func main() { `)) + + if err != nil { + log.Error(err) + } }) log.Infoln("Listening on", *listenAddress)