diff --git a/src/clj_hl7_fhir/core.clj b/src/clj_hl7_fhir/core.clj index 065656c..a2bf689 100644 --- a/src/clj_hl7_fhir/core.clj +++ b/src/clj_hl7_fhir/core.clj @@ -85,7 +85,7 @@ (json/parse-string response-body true) response-body))) (catch ExceptionInfo ex - (let [{:keys [status body] :as response} (:object (ex-data ex)) + (let [{:keys [status body] :as response} (ex-data ex) fhir-resource-response? (fhir-response? response)] (throw (ex-info (str "FHIR request failed: HTTP " status) {:status status