From ee83dfd741c47bd25eac1ac7139f20875de0452c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 13 Jul 2024 16:50:05 +0200 Subject: fix: panic rendering error pages --- internal/server/error.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/server/error.go') 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") -- cgit 1.4.1