mirror of
https://git.cyberia.club/cyberia/matrix-synapse-diskspace-janitor
synced 2024-06-12 20:52:12 +02:00
remove spurious room 404 error messages
This commit is contained in:
parent
deff431880
commit
757b27a6d9
|
@ -234,6 +234,10 @@ func (admin *MatrixAdmin) GetRoomName(roomId string) (string, error) {
|
|||
return "", errors.Wrapf(err, "HTTP GET %sxxxxxxx read error", urlWithoutToken)
|
||||
}
|
||||
|
||||
if response.StatusCode == 404 {
|
||||
return "no name found", nil
|
||||
}
|
||||
|
||||
if response.StatusCode != 200 {
|
||||
return "", fmt.Errorf(
|
||||
"HTTP GET %sxxxxxxx: HTTP %d: %s",
|
||||
|
|
Loading…
Reference in a new issue