Improve error reporting

This commit is contained in:
Neil Alexander 2021-11-09 13:53:30 +00:00
parent 16b32316c2
commit 4d20122d77
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 43 additions and 17 deletions

View file

@ -155,6 +155,12 @@ func UnableToAuthoriseJoin(msg string) *MatrixError {
return &MatrixError{"M_UNABLE_TO_AUTHORISE_JOIN", msg}
}
// UnableToGrantJoin is an error that is returned when a server that we
// are trying to join via doesn't have a user with power to invite.
func UnableToGrantJoin(msg string) *MatrixError {
return &MatrixError{"M_UNABLE_TO_GRANT_JOIN", msg}
}
type IncompatibleRoomVersionError struct {
RoomVersion string `json:"room_version"`
Error string `json:"error"`