mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
✨ Add cause stack trace logging on ui error boundary
This commit is contained in:
committed by
Belén Albeza
parent
fc4b717287
commit
024697ff87
@@ -34,6 +34,7 @@
|
||||
;; very small amount of time, so we debounce for 100ms for
|
||||
;; avoid duplicate and redundant reports
|
||||
(gfn/debounce (fn [error info]
|
||||
(js/console.log "Cause stack: \n" (.-stack error))
|
||||
(js/console.error
|
||||
"Component trace: \n"
|
||||
(unchecked-get info "componentStack")
|
||||
|
||||
Reference in New Issue
Block a user