0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Print js trace on exceptional state error is raised

This commit is contained in:
Andrey Antukh 2023-07-05 16:50:32 +02:00
parent aad70d9df8
commit 0817c4e140

View file

@ -155,6 +155,9 @@
(defmethod ptk/handle-error ::exceptional-state
[error]
(when-let [cause (::instance error)]
(js/console.log (.-stack cause)))
(ts/schedule
#(st/emit! (rt/assign-exception error))))