0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-14 08:41:48 -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 (defmethod ptk/handle-error :default
[error] [error]
(when-let [cause (::instance error)] (st/async-emit! (rt/assign-exception error))
(ts/schedule #(st/emit! (rt/assign-exception cause))))
(print-group! "Unhandled Error" (print-group! "Unhandled Error"
(fn [] (fn []
(print-trace! error) (print-trace! error)