mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
fixed default http error handler to send err detail
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
5706940bc8
commit
8f0d340f34
2
echo.go
2
echo.go
@ -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 {
|
||||
|
@ -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"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user