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:
parent
9bc816fc1c
commit
1dae8a0771
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
|
@ -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)}}))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue