Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7e817f4

Browse files
authored
Add a helpful comment
1 parent 2b027b7 commit 7e817f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stores/RoomViewStore.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ class RoomViewStore extends Store {
224224
err: err,
225225
});
226226
let msg = err.message ? err.message : JSON.stringify(err);
227+
// XXX: We are relying on the error message returned by browsers here.
228+
// This isn't great, but it does generalize the error being shown to users.
227229
if (msg && msg.startsWith("CORS request rejected")) {
228230
msg = _t("There was an error joining the room");
229231
}

0 commit comments

Comments
 (0)