Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap the crypto event handlers in try/catch blocks #203

Merged
merged 1 commit into from
Sep 12, 2016
Merged

Conversation

NegativeMjark
Copy link
Contributor

try {
crypto._onRoomMembership(event, member, oldMembership);
} catch (e) {
console.error("Error handling membership change:", e);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I try and include information about the RoomID and UserID or the EventID here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vote let's not bother for now

@dbkr dbkr merged commit 2ebd4b1 into develop Sep 12, 2016
@t3chguy t3chguy deleted the markjh/try_catch branch May 10, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initial /sync can crash out with megolm errors, leaving you with no visible rooms
2 participants