fix: panic on search error
Alan Pearce alan@alanpearce.eu
Mon, 01 Jul 2024 19:11:31 +0200
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M internal/server/mux.go → internal/server/mux.go
@@ -120,6 +120,8 @@ return } slog.Error("search error", "error", err) errorHandler(w, r, err.Error(), http.StatusInternalServerError) + + return } tdata := components.ResultData{