HTMX error handling.

This commit is contained in:
mikestefanello 2021-12-23 20:58:49 -05:00
parent 8860b981e6
commit 576caf217c
6 changed files with 24 additions and 16 deletions

View file

@ -33,6 +33,7 @@ func (e *Error) Get(err error, c echo.Context) {
p.Title = http.StatusText(code)
p.Name = "error"
p.StatusCode = code
p.HTMX.Request.Enabled = false
if err = e.RenderPage(c, p); err != nil {
c.Logger().Error(err)