From f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Jul 2024 19:11:31 +0200 Subject: fix: panic on search error --- internal/server/mux.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/server') diff --git a/internal/server/mux.go b/internal/server/mux.go index d0984da..16a0150 100644 --- a/internal/server/mux.go +++ b/internal/server/mux.go @@ -120,6 +120,8 @@ func NewMux( } slog.Error("search error", "error", err) errorHandler(w, r, err.Error(), http.StatusInternalServerError) + + return } tdata := components.ResultData{ -- cgit 1.4.1