mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 22:11:29 +00:00
Restore SimpleServerError method
This commit is contained in:
parent
7196d6ede3
commit
32d9d13dc7
@ -262,6 +262,10 @@ func InternalServerError(rw http.ResponseWriter, r *http.Request) {
|
|||||||
t.Execute(rw, data)
|
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) {
|
func Errorhandler(err string, h http.HandlerFunc) {
|
||||||
ErrorMaps[err] = h
|
ErrorMaps[err] = h
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user