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)