From 921cb7a718b8e82709264ae69d8f16262a78cb6f Mon Sep 17 00:00:00 2001 From: a <a@tuxpa.in> Date: Sun, 29 Oct 2023 20:35:01 -0500 Subject: [PATCH] add error --- contrib/codecs/http/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/codecs/http/handler.go b/contrib/codecs/http/handler.go index f47bdf7..b574244 100644 --- a/contrib/codecs/http/handler.go +++ b/contrib/codecs/http/handler.go @@ -34,5 +34,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { if err != nil { // slog.Error("codec err", "err", err) } + http.Error(w, "Internal Error", http.StatusInternalServerError) <-c.Closed() } -- GitLab