all repos — searchix @ f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e

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

fix: panic on search error
Alan Pearce alan@alanpearce.eu
Mon, 01 Jul 2024 19:11:31 +0200
commit

f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e

parent

3f6b365960e78d834783b9855353edbcf5195f1c

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

jump to
M internal/server/mux.gointernal/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{