clean up templates

This commit is contained in:
sentriz
2019-06-25 11:32:54 +01:00
parent 58a4558d5b
commit e6c6d2406f
14 changed files with 37 additions and 28 deletions

View File

@@ -38,8 +38,8 @@ func renderTemplate(w http.ResponseWriter, r *http.Request,
}
err := tmpl.Execute(w, data)
if err != nil {
log.Println("error executing template: %v\n", err)
http.Redirect(w, r, "/", 500)
log.Printf("error executing template: %v\n", err)
http.Redirect(w, r, "/", http.StatusSeeOther)
return
}
}