HTMX error handling.
This commit is contained in:
parent
8860b981e6
commit
576caf217c
6 changed files with 24 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue