summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-08 17:01:26 +0000
committerDavid Baker <dave@matrix.org>2017-03-08 17:01:26 +0000
commitd4d3629aaf930d2febfc98f8ef1ef6bd315b8a4e (patch)
tree34b5afc09a45ef2985c1e2e3834278bb0bdf39d2
parentpep8 (diff)
downloadsynapse-d4d3629aaf930d2febfc98f8ef1ef6bd315b8a4e.tar.xz
Better error message
-rw-r--r--synapse/rest/client/v2_alpha/register.py4
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))