all repos — searchix @ ee83dfd741c47bd25eac1ac7139f20875de0452c

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: panic rendering error pages
Alan Pearce alan@alanpearce.eu
Sat, 13 Jul 2024 16:50:05 +0200
commit

ee83dfd741c47bd25eac1ac7139f20875de0452c

parent

c4f8adb01ae4f74ed648ac0d58d423857c4d168a

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M internal/server/error.gointernal/server/error.go
@@ -3,6 +3,7 @@ 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 @@ ExtraHeadHTML: config.Web.ExtraHeadHTML, 			Sources:       sources,
 			Code:          code,
 			Message:       message,
+			Assets:        frontend.Assets,
 		}
 		w.Header().Set("Cache-Control", "no-store")
 		w.Header().Del("Vary")