diff --git a/http.go b/http.go index 2f70d34..6eef63a 100644 --- a/http.go +++ b/http.go @@ -18,12 +18,14 @@ func htmlHandler(res http.ResponseWriter, r *http.Request) { log.Fatal(err) } - template.ExecuteWriter(pongo2.Context{ + if err := template.ExecuteWriter(pongo2.Context{ "results": probeMonitors, "certificateOK": certificateOK, "certificateExpiresSoon": certificateExpiresSoon, "version": version, - }, res) + }, res); err != nil { + log.WithError(err).Error("Unable to render display template") + } } func httpStatusHandler(res http.ResponseWriter, r *http.Request) {