Print stack trace on console when an exception is raised.

This commit is contained in:
Andrey Antukh 2017-02-21 18:19:45 +01:00
parent 8de6311c1f
commit 5ad7e06d79
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -52,6 +52,7 @@
"A default error handler."
[{:keys [status] :as error}]
(js/console.error "on-error:" (pr-str error))
(js/console.error (.-stack error))
(reset! st/loader false)
(cond
;; Unauthorized or Auth timeout