Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed May 13, 2024
1 parent 9e74739 commit d5cd3d7
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/compojure/api/exception.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,7 @@
[clojure.walk :as walk]
[compojure.api.impl.logging :as logging]
[compojure.api.coercion.core :as cc]
[compojure.api.coercion.schema]
[schema.utils :as su])
(:import [schema.utils ValidationError NamedError]))

;; 1.1.x
(defn stringify-error
"Stringifies symbols and validation errors in Schema error, keeping the structure intact."
[error]
(walk/postwalk
(fn [x]
(cond
(instance? ValidationError x) (str (su/validation-error-explain x))
(instance? NamedError x) (str (su/named-error-explain x))
:else x))
error))
[compojure.api.coercion.schema]))

;;
;; Default exception handlers
Expand Down

0 comments on commit d5cd3d7

Please sign in to comment.