diff --git a/src/github.com/matrix-org/dendrite/federationapi/writers/threepid.go b/src/github.com/matrix-org/dendrite/federationapi/writers/threepid.go index 10f7ae0cf..772576f76 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/writers/threepid.go +++ b/src/github.com/matrix-org/dendrite/federationapi/writers/threepid.go @@ -116,6 +116,8 @@ func ExchangeThirdPartyInvite( Code: 404, JSON: jsonerror.NotFound("Unknown room " + roomID), } + } else if err != nil { + return httputil.LogThenError(httpReq, err) } // Ask the requesting server to sign the newly created event so we know it