mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 01:56:10 +02:00
Print stack trace on console when an exception is raised.
This commit is contained in:
parent
8de6311c1f
commit
5ad7e06d79
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@
|
||||||
"A default error handler."
|
"A default error handler."
|
||||||
[{:keys [status] :as error}]
|
[{:keys [status] :as error}]
|
||||||
(js/console.error "on-error:" (pr-str error))
|
(js/console.error "on-error:" (pr-str error))
|
||||||
|
(js/console.error (.-stack error))
|
||||||
(reset! st/loader false)
|
(reset! st/loader false)
|
||||||
(cond
|
(cond
|
||||||
;; Unauthorized or Auth timeout
|
;; Unauthorized or Auth timeout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue