diff --git a/src/schema/schema_validators.py b/src/schema/schema_validators.py index 02028dd7..c7cc7130 100644 --- a/src/schema/schema_validators.py +++ b/src/schema/schema_validators.py @@ -147,7 +147,7 @@ def validate_if_revision_is_unique(property_key, normalized_entity_type, request def halt_update_if_DOI_exists(property_key, normalized_entity_type, request, existing_data_dict, new_data_dict): if 'doi_url' in existing_data_dict or 'registered_doi' in existing_data_dict: raise ValueError(f"Unable to modify existing {existing_data_dict['entity_type']}" - f" {existing_data_dict['uuid']} due DOI.") + f" {existing_data_dict['uuid']} due to DOI already exists.") """ Do not allow a Collection to be created or updated with DOI information if it does not meet all the