add logging when we fail to join a room

This commit is contained in:
Bruno Windels 2020-05-26 14:58:09 +02:00
parent 29347d0c6a
commit f1282179fb

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")) {