0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-10-01 15:29:04 +02:00

Add detail to room alias name error message (#565)

This commit is contained in:
Andrew Morgan 2018-08-03 07:56:48 -07:00 committed by Erik Johnston
parent 1165b49da7
commit 1176c1d574

View file

@ -70,7 +70,7 @@ func (r createRoomRequest) Validate() *util.JSONResponse {
if strings.ContainsAny(r.RoomAliasName, whitespace+":") {
return &util.JSONResponse{
Code: http.StatusBadRequest,
JSON: jsonerror.BadJSON("room_alias_name cannot contain whitespace"),
JSON: jsonerror.BadJSON("room_alias_name cannot contain whitespace or ':'"),
}
}
for _, userID := range r.Invite {