Make minor clarifications to the error messages given when we fail to join a room via any server. (#13160)

This commit is contained in:
reivilibre 2022-07-27 10:37:50 +00:00 committed by GitHub
parent 4f3082d6bf
commit 39be5bc550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 3 deletions

View file

@ -1679,7 +1679,11 @@ class RoomMemberMasterHandler(RoomMemberHandler):
]
if len(remote_room_hosts) == 0:
raise SynapseError(404, "No known servers")
raise SynapseError(
404,
"Can't join remote room because no servers "
"that are in the room have been provided.",
)
check_complexity = self.hs.config.server.limit_remote_rooms.enabled
if (