mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05: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
|
||||
[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
|
||||
|
|
Loading…
Reference in a new issue