0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix incorrect value passed on unhandled error

This commit is contained in:
Andrey Antukh 2024-02-14 17:33:34 +01:00
parent add9c98ba0
commit 3212ed9bd1

View file

@ -90,8 +90,7 @@
(defmethod ptk/handle-error :default
[error]
(when-let [cause (::instance error)]
(ts/schedule #(st/emit! (rt/assign-exception cause))))
(st/async-emit! (rt/assign-exception error))
(print-group! "Unhandled Error"
(fn []
(print-trace! error)