From c41154a200ba0de833dfa4de04de9ce73a082951 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 8 Apr 2026 17:27:51 +0000 Subject: [PATCH] Actually serialize errors on bad JSON POST response --- api/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/handler.go b/api/handler.go index a06857a7..88ee655b 100644 --- a/api/handler.go +++ b/api/handler.go @@ -252,6 +252,7 @@ func handlerJSONPost[RequestType any, ResponseType any](f handlerFunctionPost[Re ctx := r.Context() resp, e := f(ctx, r, *req) if e != nil { + serializeError(w, e) return } body, err := json.Marshal(resp)