diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py index 4091d51060..49d85436ba 100644 --- a/zerver/tests/test_push_notifications.py +++ b/zerver/tests/test_push_notifications.py @@ -5239,7 +5239,7 @@ class PushBouncerSignupTest(ZulipTestCase): request["contact_email"] = "admin@example.com" result = self.client_post("/api/v1/remotes/server/register", request) - self.assert_json_error(result, "Invalid address.") + self.assert_json_error(result, "Invalid email address.") # An example disposable domain. request["contact_email"] = "admin@mailnator.com" diff --git a/zilencer/views.py b/zilencer/views.py index d2789ef59f..def17306c1 100644 --- a/zilencer/views.py +++ b/zilencer/views.py @@ -167,7 +167,7 @@ def register_remote_server( contact_email_domain = Address(addr_spec=contact_email).domain.lower() if contact_email_domain == "example.com": - raise JsonableError(_("Invalid address.")) + raise JsonableError(_("Invalid email address.")) # Check if the domain has an MX record try: