feat: middleware to return error as html
This commit is contained in:
10
pages/templates/errors/error.gohtml
Normal file
10
pages/templates/errors/error.gohtml
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "title" }}
|
||||
Error occurred
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main hx-boost="true" class="px-10 pt-10 flex flex-col gap-y-10">
|
||||
<p> Error {{ .ErrorCode }} occurred! </p>
|
||||
<p> {{ .ErrorText }} </p>
|
||||
</main>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user