1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

fixed default http error handler to send err detail

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-12-11 13:06:36 -08:00
parent 5706940bc8
commit 8f0d340f34
2 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
code = he.Code
msg = he.Message
} else {
msg = Map{"message": err}
msg = Map{"message": err.Error()}
}
if !c.Response().Committed {

View File

@ -18,5 +18,5 @@ func main() {
<h3>TLS certificates automatically installed from Let's Encrypt :)</h3>
`)
})
e.StartAutoTLS(":443")
e.Logger.Fatal(e.StartAutoTLS(":443"))
}