diff --git a/middleware.go b/middleware.go index 4ef58e3..c53a582 100644 --- a/middleware.go +++ b/middleware.go @@ -131,6 +131,7 @@ func NewWithConfig(logger *slog.Logger, config Config) echo.MiddlewareFunc { err = echo. NewHTTPError(http.StatusInternalServerError). WithInternal(err) + c.Error(err) } }