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

📎 Minor improvement on error logging on worker.

This commit is contained in:
Andrey Antukh 2022-01-19 11:29:36 +01:00 committed by Andrés Moya
parent 9bc816fc1c
commit 1dae8a0771
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@
(defn on-error
[error]
(js/console.error "Error on worker" error))
(js/console.error "Error on worker" (pr-str error)))
(defonce instance (atom nil))

View file

@ -53,7 +53,7 @@
(post {:payload result}))
(reply-error [err]
(.error js/console "error" err)
(.error js/console "error" (pr-str err))
(post {:error {:data (ex-data err)
:message (ex-message err)}}))