1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-30 08:46:41 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2017-01-21 10:40:11 -08:00
parent 17d66313ff
commit 900a463715

View File

@ -290,6 +290,8 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
if he, ok := err.(*HTTPError); ok {
code = he.Code
msg = he.Message
} else if e.Debug {
msg = err.Error()
} else {
msg = http.StatusText(code)
}