mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 02:01:09 +00:00
✨ Print js trace on exceptional state error is raised
This commit is contained in:
@@ -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))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user