Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

register_remote_server: Be more explicit about example.com emails.

Alex Vandivera0e5be7f2ead
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index cdc81277857..96b0b036599 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -2663,7 +2663,7 @@ class PushBouncerSignupTest(ZulipTestCase):
result = self.client_post("/api/v1/remotes/server/register", request)
self.assert_json_error(
result,
- "Invalid server administrator email address: Invalid email address.",
+ "Invalid server administrator email address: example.com is not a valid email domain.",
)
# An example disposable domain.
diff --git a/zilencer/views.py b/zilencer/views.py
index bb1bffdf4c5..418aa8bda9c 100644
--- a/zilencer/views.py
+++ b/zilencer/views.py
@@ -245,7 +245,7 @@ def register_remote_server(
contact_email_domain = Address(addr_spec=contact_email).domain.lower()
if contact_email_domain == "example.com":
- raise ServerAdminEmailError(_("Invalid email address."))
+ raise ServerAdminEmailError(_("example.com is not a valid email domain."))
# Check if the domain has an MX record
resolver = dns_resolver.Resolver()