about summary refs log tree commit diff stats
path: root/internal/components/page.templ
diff options
context:
space:
mode:
authorAlan Pearce2025-03-12 22:39:51 +0100
committerAlan Pearce2025-03-12 22:39:51 +0100
commit9015baf955c94a806c01b3dcd5648c8e68ad2685 (patch)
tree5f59386c2ab31b6e45b85576e45a1fc8ae448ae0 /internal/components/page.templ
parent7bb77ff5729cc9434afee895a470fd3b4c12e6d1 (diff)
downloadsearchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.tar.lz
searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.tar.zst
searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.zip
refactor: ensure errors have stack traces
Diffstat (limited to 'internal/components/page.templ')
-rw-r--r--internal/components/page.templ2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/components/page.templ b/internal/components/page.templ
index 4ba3741..63d0439 100644
--- a/internal/components/page.templ
+++ b/internal/components/page.templ
@@ -81,7 +81,7 @@ templ script(s *frontend.Asset) {
 }
 
 func Unsafe(html string) templ.Component {
-	return templ.ComponentFunc(func(_ context.Context, w io.Writer) (err error) {
+	return templ.ComponentFunc(func(_ context.Context, w io.Writer) (err errors.E) {
 		_, err = io.WriteString(w, html)
 		return
 	})