We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad00799 commit b196f56Copy full SHA for b196f56
service/src/stencil/service.clj
@@ -9,6 +9,7 @@
9
[stencil.slf4j :as slf4j]
10
[clojure.data :refer [diff]]
11
[clojure.java.io :as io :refer [file]]
12
+ [clojure.string]
13
[ring.middleware.json :refer [wrap-json-body]]))
14
15
(set! *warn-on-reflection* true)
@@ -64,8 +65,8 @@
64
65
(prepared template)
66
(throw (ex-info "Template file does not exist!" {:status 404})))))
67
-(defn- exception->str [e]
68
- (clojure.string/join "\n" (for [e (iterate #(.getCause %) e) :while e] (.getMessage e))))
+(defn- exception->str [^Exception e]
69
+ (clojure.string/join "\n" (for [^Exception e (iterate #(.getCause ^Exception %) e) :while e] (.getMessage e))))
70
71
(defn wrap-err [handler]
72
(fn [request]
0 commit comments