forked from MirrorHub/synapse
Better error message
This commit is contained in:
parent
1c99934b28
commit
d4d3629aaf
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue