standardized clients.

This commit is contained in:
Bryce Covert
2020-08-04 11:55:20 -07:00
parent f1dab06330
commit e1ffeda851
8 changed files with 799 additions and 636 deletions

View File

@@ -34,7 +34,7 @@
:headers {"Content-Type" "application/edn"}})
(do (log/error "GraphQL error" e)
{:status 500
:body (pr-str {:errors [(merge {:message (.getMessage e)} (ex-data e))]})
:body (pr-str {:errors [(merge {:message (str "Unhandled error:" (str e))} (ex-data e))]})
:headers {"Content-Type" "application/edn"}}))))))