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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user