summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/register.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-09-04 12:07:00 +0100
committerNeil Johnson <neil@matrix.org>2018-09-04 12:07:00 +0100
commitbae37cd811fd71c68d28eb300eb0b74a5b6a1c27 (patch)
treedf6892996b08ab39a1642335be2b9ec7cfc322e6 /synapse/rest/client/v2_alpha/register.py
parentimprove human readable error messages (diff)
downloadsynapse-bae37cd811fd71c68d28eb300eb0b74a5b6a1c27.tar.xz
improve human readable error message
Diffstat (limited to 'synapse/rest/client/v2_alpha/register.py')
-rw-r--r--synapse/rest/client/v2_alpha/register.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 200b29fa38..192f52e462 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/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,
                         )