Feat: add error template
This commit is contained in:
		| @@ -16,6 +16,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| func abortWithError(w http.ResponseWriter, msg string) { | ||||
| 	w.WriteHeader(500) | ||||
| 	tmpl := template.Must(template.ParseGlob("components/*.html")) | ||||
| 	tmpl.ExecuteTemplate(w, "error", msg) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder