Skip to content

Commit

Permalink
fix(error handling): overwrite the echo error when not an echo.HTTPEr…
Browse files Browse the repository at this point in the history
…ror.

Fixing #40
  • Loading branch information
samber committed Aug 26, 2024
1 parent c8628d6 commit 1b51e11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func NewWithConfig(logger *slog.Logger, config Config) echo.MiddlewareFunc {
err = echo.
NewHTTPError(http.StatusInternalServerError).
WithInternal(err)
c.Error(err)
}
}

Expand Down

0 comments on commit 1b51e11

Please sign in to comment.