aboutsummaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.go b/index.go
index 9b53b6c..353e637 100644
--- a/index.go
+++ b/index.go
@@ -93,7 +93,11 @@ func handle_index(w http.ResponseWriter, req *http.Request) {
},
)
if err != nil {
- log.Println(err)
- return
+ w.Header().Set("Content-Type", "text/plain; charset=utf-8")
+ w.WriteHeader(500)
+ w.Write([]byte(fmt.Sprintf(
+ "Error\nUnexpected template error.\n%s\n",
+ err,
+ )))
}
}