1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 05:04:12 +00:00

Restore SimpleServerError method

This commit is contained in:
vadimi 2013-12-06 00:44:54 -05:00
parent 7196d6ede3
commit 32d9d13dc7

View File

@ -262,6 +262,10 @@ func InternalServerError(rw http.ResponseWriter, r *http.Request) {
t.Execute(rw, data)
}
func SimpleServerError(rw http.ResponseWriter, r *http.Request) {
http.Error(rw, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
}
func Errorhandler(err string, h http.HandlerFunc) {
ErrorMaps[err] = h
}