about summary refs log tree commit diff
path: root/src/http
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:54:52 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:54:52 +0100
commitff3b9605ff4d4cbd592eb39600dc52b781f3f5e0 (patch)
treec2210ac76e2d9e031aeef503b189f88e8387654e /src/http
parentaff52e9abc5f0695843b59e684baa0eee793a3cc (diff)
corrected error handling
Diffstat (limited to 'src/http')
-rw-r--r--src/http/http.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/http.go b/src/http/http.go
index 9bf35e0..b0e0145 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -286,7 +286,9 @@ func pathHandler(w http.ResponseWriter, r *http.Request) {
 	}
 
 	err = t.ExecuteTemplate(w, "index", content)
-	logrus.Warn(err)
+	if err != nil {
+		logrus.Warn("Error executing the template: %s", err)
+	}
 	return
 }