File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9999
100100 // HTTPError represents an error that occurred while handling a request.
101101 HTTPError struct {
102- Code int `json:"code "`
102+ Code int `json:"- "`
103103 Message interface {} `json:"message"`
104104 Internal error `json:"-"` // Stores the error returned by an external dependency
105105 }
@@ -227,7 +227,7 @@ const (
227227
228228const (
229229 // Version of Echo
230- Version = "4.1.6 "
230+ Version = "4.1.8 "
231231 website = "https://echo.labstack.com"
232232 // http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
233233 banner = `
@@ -349,12 +349,11 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
349349 } else {
350350 he = & HTTPError {
351351 Code : http .StatusInternalServerError ,
352+ Message : http .StatusText (http .StatusInternalServerError ),
352353 }
353354 }
354355 if e .Debug {
355356 he .Message = err .Error ()
356- } else {
357- he .Message = http .StatusText (he .Code )
358357 }
359358
360359 // Send response
You can’t perform that action at this time.
0 commit comments