From ce95d736cc1174a3264dbb053680581d64f6510a Mon Sep 17 00:00:00 2001 From: jem Date: Sun, 16 Feb 2020 14:50:53 +0100 Subject: [PATCH] print stacktrace in case of error --- src/cryogen_core/compiler.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index 9a138d2..99acaae 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -18,7 +18,8 @@ [cryogen-core.sitemap :as sitemap] [clojure.inspector :as inspector] [cryogen-core.toc :as toc] - [cryogen-core.hierarchic :as hierarchic]) + [cryogen-core.hierarchic :as hierarchic] + [clojure.stacktrace :as strace]) (:import [java.util Locale] [java.net URI] [java.io File])) @@ -620,4 +621,5 @@ (if (or (instance? IllegalArgumentException e) (instance? clojure.lang.ExceptionInfo e)) (println (red "Error:") (yellow (.getMessage e))) - (write-exception e)))))) + (write-exception e)) + (strace/print-stack-trace e)))))