diff options
author | Alan Pearce | 2024-07-01 19:11:31 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-01 19:11:31 +0200 |
commit | f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e (patch) | |
tree | 77c1a50d0b84ca7861fe674c0bd27afac7f060fd /internal | |
parent | 3f6b365960e78d834783b9855353edbcf5195f1c (diff) | |
download | searchix-f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e.tar.lz searchix-f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e.tar.zst searchix-f076b5bd6cb82edd99be50f3dbdd39bb9be2c44e.zip |
fix: panic on search error
Diffstat (limited to 'internal')
-rw-r--r-- | internal/server/mux.go | 2 |
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{ |