0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Report validation errors via log in migration

This commit is contained in:
Andrés Moya 2023-11-14 11:32:30 +01:00 committed by Andrey Antukh
parent 451d6c1d7b
commit c7fdbe37f1

View file

@ -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)))))