Skip to content

Commit

Permalink
Fixed version
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <vr@labstack.com>
  • Loading branch information
vishr committed Aug 5, 2019
1 parent ed51400 commit 09d415c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type (

// HTTPError represents an error that occurred while handling a request.
HTTPError struct {
Code int `json:"code"`
Code int `json:"-"`
Message interface{} `json:"message"`
Internal error `json:"-"` // Stores the error returned by an external dependency
}
Expand Down Expand Up @@ -227,7 +227,7 @@ const (

const (
// Version of Echo
Version = "4.1.6"
Version = "4.1.8"
website = "https://echo.labstack.com"
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
banner = `
Expand Down Expand Up @@ -349,12 +349,11 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
} else {
he = &HTTPError{
Code: http.StatusInternalServerError,
Message: http.StatusText(http.StatusInternalServerError),
}
}
if e.Debug {
he.Message = err.Error()
} else {
he.Message = http.StatusText(he.Code)
}

// Send response
Expand Down

0 comments on commit 09d415c

Please sign in to comment.