Improving error reporting in ValidateMetadataAction