32d9d13d by vadimi

Restore SimpleServerError method

1 parent 7196d6ed
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!