diff options
author | Emile <hanemile@protonmail.com> | 2020-03-22 15:54:52 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-22 15:54:52 +0100 |
commit | ff3b9605ff4d4cbd592eb39600dc52b781f3f5e0 (patch) | |
tree | c2210ac76e2d9e031aeef503b189f88e8387654e | |
parent | aff52e9abc5f0695843b59e684baa0eee793a3cc (diff) |
corrected error handling
-rw-r--r-- | src/http/http.go | 4 |
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 } |