From 864b89e78ab732b3a380971216ff082b95bab984 Mon Sep 17 00:00:00 2001 From: Lauri Oherd Date: Mon, 31 Dec 2018 15:28:33 +0200 Subject: [PATCH] Fix an issue when trying to use lein slamhound with Clojure version 1.10.0 --- project.clj | 2 +- src/slam/hound/regrow.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 5e58ed9..8708a54 100644 --- a/project.clj +++ b/project.clj @@ -4,7 +4,7 @@ :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :main ^:skip-aot slam.hound - :dependencies [[org.clojure/clojure "1.4.0"]] + :dependencies [[org.clojure/clojure "1.7.0"]] :profiles {:dev {:dependencies [[org.clojure/tools.trace "0.7.3"] ;; Last version of CLJS compatible with ;; Clojure 1.4.0 diff --git a/src/slam/hound/regrow.clj b/src/slam/hound/regrow.clj index 5ac44e6..c8d4423 100644 --- a/src/slam/hound/regrow.clj +++ b/src/slam/hound/regrow.clj @@ -119,7 +119,7 @@ (try (eval `(do ~ns-form ~@body nil)) (catch Exception e - (or (failure-details (str (type e) " " (.getMessage e)) (:old ns-map)) + (or (failure-details (str (type e) " " (-> e Throwable->map :cause)) (:old ns-map)) (do (debug :not-found ns-form) (throw e)))) (finally