diff options
author | Neil Johnson <neil@matrix.org> | 2018-09-04 12:07:00 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-09-04 12:07:00 +0100 |
commit | bae37cd811fd71c68d28eb300eb0b74a5b6a1c27 (patch) | |
tree | df6892996b08ab39a1642335be2b9ec7cfc322e6 /synapse/rest | |
parent | improve human readable error messages (diff) | |
download | synapse-bae37cd811fd71c68d28eb300eb0b74a5b6a1c27.tar.xz |
improve human readable error message
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 3 |
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, ) |