about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-07-01 19:11:31 +0200
committerAlan Pearce2024-07-01 19:11:31 +0200
commitf076b5bd6cb82edd99be50f3dbdd39bb9be2c44e (patch)
tree77c1a50d0b84ca7861fe674c0bd27afac7f060fd /internal/server
parent3f6b365960e78d834783b9855353edbcf5195f1c (diff)
downloadsearchix-f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e.tar.lz
searchix-f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e.tar.zst
searchix-f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e.zip
fix: panic on search error
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/mux.go2
1 files changed, 2 insertions, 0 deletions
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{