1
0
mirror of https://github.com/labstack/echo.git synced 2025-06-15 00:14:57 +02:00

Enhanced default http error handler

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2019-08-01 22:20:33 -07:00
parent 87da9a948b
commit ed51400a81
2 changed files with 16 additions and 20 deletions

View File

@ -534,7 +534,7 @@ func TestHTTPError(t *testing.T) {
err := NewHTTPError(http.StatusBadRequest, map[string]interface{}{
"code": 12,
})
assert.Equal(t, "code=400, message=map[code:12]", err.Error())
assert.Equal(t, "code=400, message=map[code:12], internal=<nil>", err.Error())
}
func TestEchoClose(t *testing.T) {