mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -05:00
✨ Report validation errors via log in migration
This commit is contained in:
parent
451d6c1d7b
commit
c7fdbe37f1
1 changed files with 6 additions and 1 deletions
|
@ -661,7 +661,12 @@
|
|||
{:id (:id file)})
|
||||
|
||||
(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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue