From c7fdbe37f1e60e696bde4ec1a29bb6630c2e160a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 14 Nov 2023 11:32:30 +0100 Subject: [PATCH] :sparkles: Report validation errors via log in migration --- backend/src/app/features/components_v2.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index ed244b260..7ab986278 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -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)))))