diff --git a/common/src/app/common/logging.cljc b/common/src/app/common/logging.cljc index 89ad318e7..0796daa4b 100644 --- a/common/src/app/common/logging.cljc +++ b/common/src/app/common/logging.cljc @@ -44,8 +44,9 @@ (defn build-message-cause [props] #?(:clj (when-let [[_ cause] (d/seek (fn [[k]] (= k :cause)) props)] - (with-out-str - (ex/print-throwable cause))) + (when cause + (with-out-str + (ex/print-throwable cause)))) :cljs nil)) (defn build-message