Tweak error handling some more

This commit is contained in:
Neil Alexander 2021-11-11 15:42:58 +00:00
parent 9fb7b59648
commit 9ad0a85df9
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -25,6 +25,7 @@ import (
"github.com/getsentry/sentry-go"
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
rsAPI "github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal/helpers"
"github.com/matrix-org/dendrite/roomserver/internal/input"
@ -60,7 +61,8 @@ func (r *Joiner) PerformJoin(
res.Error = perr
} else {
res.Error = &rsAPI.PerformError{
Msg: err.Error(),
Code: api.PerformErrorNotAllowed, // TODO: fix this when cross-boundary handling is better.
Msg: err.Error(),
}
}
}