about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-07-13 16:50:05 +0200
committerAlan Pearce2024-07-13 16:50:05 +0200
commitee83dfd741c47bd25eac1ac7139f20875de0452c (patch)
treedb56a6faa582baf76a92147ed36486a654bef9b3
parentc4f8adb01ae4f74ed648ac0d58d423857c4d168a (diff)
downloadsearchix-ee83dfd741c47bd25eac1ac7139f20875de0452c.tar.lz
searchix-ee83dfd741c47bd25eac1ac7139f20875de0452c.tar.zst
searchix-ee83dfd741c47bd25eac1ac7139f20875de0452c.zip
fix: panic rendering error pages
-rw-r--r--internal/server/error.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/server/error.go b/internal/server/error.go
index 1e04bbc..c2acf48 100644
--- a/internal/server/error.go
+++ b/internal/server/error.go
@@ -3,6 +3,7 @@ package server
 import (
 	"net/http"
 
+	"go.alanpearce.eu/searchix/frontend"
 	"go.alanpearce.eu/searchix/internal/components"
 	"go.alanpearce.eu/searchix/internal/config"
 	"go.alanpearce.eu/x/log"
@@ -22,6 +23,7 @@ func createErrorHandler(
 			Sources:       sources,
 			Code:          code,
 			Message:       message,
+			Assets:        frontend.Assets,
 		}
 		w.Header().Set("Cache-Control", "no-store")
 		w.Header().Del("Vary")