0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-12 06:51:23 -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 fa7cf70cee
commit 0cc6c76cdb

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