Browse Source

improve human readable error message

Neil Johnson 5 years ago
parent
commit
bae37cd811
1 changed files with 2 additions and 1 deletions
  1. 2 1
      synapse/rest/client/v2_alpha/register.py

+ 2 - 1
synapse/rest/client/v2_alpha/register.py

@@ -378,7 +378,8 @@ class RegisterRestServlet(RestServlet):
                     if not check_3pid_allowed(self.hs, medium, address):
                         raise SynapseError(
                             403,
-                            "Third party identifier (email/phone number) is not allowed",
+                            "Third party identifiers (email/phone numbers)" +
+                            " are not authorized on this server",
                             Codes.THREEPID_DENIED,
                         )