mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
✨ Report validation errors via log in migration
This commit is contained in:
parent
451d6c1d7b
commit
c7fdbe37f1
@ -661,7 +661,12 @@
|
|||||||
{:id (:id file)})
|
{:id (:id file)})
|
||||||
|
|
||||||
(when validate?
|
(when validate?
|
||||||
(cfv/validate-file file libs :throw? true))
|
(let [errors (cfv/validate-file file libs)]
|
||||||
|
(when (seq errors)
|
||||||
|
(l/err :hint "migrate:file:validation-error"
|
||||||
|
:file-id (str (:id file))
|
||||||
|
:file-name (:name file)
|
||||||
|
:errors errors))))
|
||||||
|
|
||||||
(dissoc file :data)))))
|
(dissoc file :data)))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user