Restore SimpleServerError method
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -262,6 +262,10 @@ func InternalServerError(rw http.ResponseWriter, r *http.Request) { | ... | @@ -262,6 +262,10 @@ func InternalServerError(rw http.ResponseWriter, r *http.Request) { |
| 262 | t.Execute(rw, data) | 262 | t.Execute(rw, data) |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | func SimpleServerError(rw http.ResponseWriter, r *http.Request) { | ||
| 266 | http.Error(rw, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError) | ||
| 267 | } | ||
| 268 | |||
| 265 | func Errorhandler(err string, h http.HandlerFunc) { | 269 | func Errorhandler(err string, h http.HandlerFunc) { |
| 266 | ErrorMaps[err] = h | 270 | ErrorMaps[err] = h |
| 267 | } | 271 | } | ... | ... |
-
Please register or sign in to post a comment