diff --git a/policies_datapackage_status.py b/policies_datapackage_status.py index 16666251b..16fe5c602 100644 --- a/policies_datapackage_status.py +++ b/policies_datapackage_status.py @@ -40,7 +40,7 @@ def can_transition_datapackage_status(ctx: rule.Context, return policy.fail('Metadata missing, unable to submit this data package for publication.') if not meta.is_json_metadata_valid(ctx, meta_path): - return policy.fail('Metadata is not valid, please open the metadata form for more information') + return policy.fail('Metadata is either incomplete or invalid, please open the metadata form for more information') return policy.succeed() diff --git a/policies_folder_status.py b/policies_folder_status.py index 2afae97e3..ec3a7629b 100644 --- a/policies_folder_status.py +++ b/policies_folder_status.py @@ -70,7 +70,7 @@ def can_transition_folder_status(ctx: rule.Context, return policy.fail('Metadata missing, unable to submit this folder') if not meta.is_json_metadata_valid(ctx, meta_path): - return policy.fail('Metadata is not valid, please open the metadata form for more information') + return policy.fail('Metadata is either incomplete or invalid, please open the metadata form for more information') elif status_to in [constants.research_package_state.ACCEPTED, constants.research_package_state.REJECTED]: