mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 06:16:11 +02:00
🐛 Fix minor issue on logging when cause is nil
This commit is contained in:
parent
2dcb4a155e
commit
84bee9fb93
1 changed files with 3 additions and 2 deletions
|
@ -44,8 +44,9 @@
|
||||||
(defn build-message-cause
|
(defn build-message-cause
|
||||||
[props]
|
[props]
|
||||||
#?(:clj (when-let [[_ cause] (d/seek (fn [[k]] (= k :cause)) props)]
|
#?(:clj (when-let [[_ cause] (d/seek (fn [[k]] (= k :cause)) props)]
|
||||||
(with-out-str
|
(when cause
|
||||||
(ex/print-throwable cause)))
|
(with-out-str
|
||||||
|
(ex/print-throwable cause))))
|
||||||
:cljs nil))
|
:cljs nil))
|
||||||
|
|
||||||
(defn build-message
|
(defn build-message
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue