           (crud/set-operations request)
           (u/json-response))
       (catch ExceptionInfo ei
-        (.getData ei)))))
+        (ex-data ei)))))
 
 (defn edit-fn
   [resource-name]

          (a/can-modify? request)
          (db/delete request))
      (catch ExceptionInfo ei
        (.getData ei)))))

(defn collection-wrapper-fn
  [resource-name collection-acl collection-uri collection-key]

            (db/edit request)
            (u/json-response)))
      (catch ExceptionInfo ei
        (ex-data ei)))))

(defn delete-fn
  [resource-name]
