mirror of https://github.com/vector-im/riot-web
Merge pull request #4645 from matrix-org/bwindels/addloggingforfailtojoinroom
Add logging when room join failspull/21833/head
commit
d45a597528
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue