Merge pull request #4645 from matrix-org/bwindels/addloggingforfailtojoinroom

Add logging when room join fails
pull/21833/head
Bruno Windels 2020-05-26 13:22:22 +00:00 committed by GitHub
commit d45a597528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ class RoomViewStore extends Store {
err: err,
});
let msg = err.message ? err.message : JSON.stringify(err);
console.log("Failed to join room:", msg);
// XXX: We are relying on the error message returned by browsers here.
// This isn't great, but it does generalize the error being shown to users.
if (msg && msg.startsWith("CORS request rejected")) {