From afcc7702a9aea435a50069cf509d24c431cf4fcc Mon Sep 17 00:00:00 2001 From: "Zeller, Christina" Date: Mon, 1 Aug 2022 11:33:45 +0200 Subject: [PATCH] global: Clarifies error message. Refs: https://github.com/inveniosoftware/invenio-app-rdm/issues/1707 --- invenio_vocabularies/contrib/names/schema.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/invenio_vocabularies/contrib/names/schema.py b/invenio_vocabularies/contrib/names/schema.py index e205b445..f8c07f1e 100644 --- a/invenio_vocabularies/contrib/names/schema.py +++ b/invenio_vocabularies/contrib/names/schema.py @@ -49,7 +49,11 @@ def validate_names(self, data, **kwargs): can_compose = data.get("family_name") and data.get("given_name") name = data.get("name") if not can_compose and not name: - messages = [_("name or family_name and given_name must be present.")] + messages = [ + _( + "A name or the family name together with the given name must be present." + ) + ] raise ValidationError({"family_name": messages}) @post_load