0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix minor issue on logging when cause is nil

This commit is contained in:
Andrey Antukh 2022-12-16 09:27:00 +01:00
parent 2dcb4a155e
commit 84bee9fb93

View file

@ -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