mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Pass through HTTPError when failing join
This commit is contained in:
parent
7d6f606d1c
commit
8ad188109b
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ func (r *FederationSenderInternalAPI) performJoinUsingServer(
|
|||
// A well-formed HTTP error response that isn't in the 500s isn't fatal,
|
||||
// so we shouldn't punish the server by backing off.
|
||||
if httpErr, ok := err.(gomatrix.HTTPError); ok && httpErr.Code < 500 {
|
||||
return fmt.Errorf("HTTP error %d: %s", httpErr.Code, httpErr.Message)
|
||||
return httpErr
|
||||
}
|
||||
// TODO: Check if the user was not allowed to join the room.
|
||||
r.statistics.ForServer(serverName).Failure()
|
||||
|
|
Loading…
Reference in a new issue