mirror of
https://github.com/penpot/penpot.git
synced 2025-02-04 13:29:14 -05:00
✨ Print js trace on exceptional state error is raised
This commit is contained in:
parent
aad70d9df8
commit
0817c4e140
1 changed files with 3 additions and 0 deletions
|
@ -155,6 +155,9 @@
|
||||||
|
|
||||||
(defmethod ptk/handle-error ::exceptional-state
|
(defmethod ptk/handle-error ::exceptional-state
|
||||||
[error]
|
[error]
|
||||||
|
(when-let [cause (::instance error)]
|
||||||
|
(js/console.log (.-stack cause)))
|
||||||
|
|
||||||
(ts/schedule
|
(ts/schedule
|
||||||
#(st/emit! (rt/assign-exception error))))
|
#(st/emit! (rt/assign-exception error))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue