mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 18:27:17 +02:00
Merge pull request #6847 from penpot/niwinz-staging-error-reports-2
✨ Add minor improvements to error report on calc bool content
This commit is contained in:
commit
264aef277d
1 changed files with 11 additions and 1 deletions
|
@ -200,7 +200,17 @@
|
|||
contents
|
||||
(sequence extract-content-xf (:shapes shape))]
|
||||
|
||||
(bool/calculate-content (:bool-type shape) contents)))
|
||||
(ex/try!
|
||||
(bool/calculate-content (:bool-type shape) contents)
|
||||
|
||||
:on-exception
|
||||
(fn [cause]
|
||||
(ex/raise :type :internal
|
||||
:code :invalid-path-content
|
||||
:hint (str "unable to calculate bool content for shape " (:id shape))
|
||||
:shapes (:shapes shape)
|
||||
:content (mapv str contents)
|
||||
:cause cause)))))
|
||||
|
||||
(defn calc-bool-content
|
||||
"Calculate the boolean content from shape and objects. Returns a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue