diff options
author | David Baker <dave@matrix.org> | 2017-03-08 17:01:26 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-03-08 17:01:26 +0000 |
commit | d4d3629aaf930d2febfc98f8ef1ef6bd315b8a4e (patch) | |
tree | 34b5afc09a45ef2985c1e2e3834278bb0bdf39d2 /synapse/rest/client/v2_alpha | |
parent | pep8 (diff) | |
download | synapse-d4d3629aaf930d2febfc98f8ef1ef6bd315b8a4e.tar.xz |
Better error message
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py index 98b277e072..2c184b7314 100644 --- a/synapse/rest/client/v2_alpha/register.py +++ b/synapse/rest/client/v2_alpha/register.py @@ -107,7 +107,9 @@ class MsisdnRegisterRequestTokenRestServlet(RestServlet): ) if existingUid is not None: - raise SynapseError(400, "MSISDN is already in use", Codes.THREEPID_IN_USE) + raise SynapseError( + 400, "Phone number is already in use", Codes.THREEPID_IN_USE + ) ret = yield self.identity_handler.requestMsisdnToken(**body) defer.returnValue((200, ret)) |