Add missing error check

This commit is contained in:
Brendan Abolivier 2017-09-12 17:05:40 +01:00
parent ddc4b28781
commit 40a8d732fd
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -116,6 +116,8 @@ func ExchangeThirdPartyInvite(
Code: 404, Code: 404,
JSON: jsonerror.NotFound("Unknown room " + roomID), 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 // Ask the requesting server to sign the newly created event so we know it