mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
Improve error reporting
This commit is contained in:
parent
16b32316c2
commit
4d20122d77
2 changed files with 43 additions and 17 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue