diff --git a/src/clj/auto_ap/routes/graphql.clj b/src/clj/auto_ap/routes/graphql.clj index b4e332cc..0bb973e1 100644 --- a/src/clj/auto_ap/routes/graphql.clj +++ b/src/clj/auto_ap/routes/graphql.clj @@ -31,11 +31,11 @@ (warn-event "GraphQL Validation error" {:message message :data e}) {:status 400 - :body (pr-str {:errors [(merge {:message message} (ex-data e))]}) + :body (pr-str {:errors [{:message message}]}) :headers {"Content-Type" "application/edn"}}) (do (log/error "GraphQL error" e) {:status 500 - :body (pr-str {:errors [(merge {:message (str "Unhandled error:" (str e))} #_(ex-data e))]}) + :body (pr-str {:errors [{:message (str "Unhandled error:" (str e))}]}) :headers {"Content-Type" "application/edn"}}))))))