diff --git a/connectors/sources/gmail.py b/connectors/sources/gmail.py index 52767d562..818e706a8 100644 --- a/connectors/sources/gmail.py +++ b/connectors/sources/gmail.py @@ -32,7 +32,7 @@ CUSTOMER_ID_LABEL = "Google customer id" -SUBJECT_LABEL = "Subject" +SUBJECT_LABEL = "Google Workspace admin email" SERVICE_ACCOUNT_CREDENTIALS_LABEL = "GMail service account JSON" @@ -180,7 +180,7 @@ async def validate_config(self): subject = self.configuration["subject"] if not validate_email_address(subject): - msg = f"Subject field value needs to be a valid email address. '{subject}' is invalid." + msg = f"{SUBJECT_LABEL} field value needs to be a valid email address. '{subject}' is invalid." raise ConfigurableFieldValueError(msg) await self._validate_google_directory_auth()