mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
Fix tests
This commit is contained in:
parent
f07dfdca9f
commit
dda2c278cd
|
|
@ -91,6 +91,8 @@ func (r *FederationSenderInternalAPI) PerformJoin(
|
||||||
var httpErr gomatrix.HTTPError
|
var httpErr gomatrix.HTTPError
|
||||||
if ok := errors.As(lastErr, &httpErr); ok {
|
if ok := errors.As(lastErr, &httpErr); ok {
|
||||||
httpErr.Message = string(httpErr.Contents)
|
httpErr.Message = string(httpErr.Contents)
|
||||||
|
// Clear the wrapped error, else serialising to JSON (in polylith mode) will fail
|
||||||
|
httpErr.WrappedError = nil
|
||||||
response.LastError = &httpErr
|
response.LastError = &httpErr
|
||||||
} else {
|
} else {
|
||||||
response.LastError = &gomatrix.HTTPError{
|
response.LastError = &gomatrix.HTTPError{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue