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

Prevent errors from occurring when the message data is malformed. #143

Merged
merged 3 commits into from
Feb 7, 2022

Conversation

Lazrius
Copy link
Contributor

@Lazrius Lazrius commented Feb 2, 2022

On some builds the dice roll will fail due to the messageData object not having the update method. This will cause the dice roll to fail without any information being passed back to the end user. I found on the latest V9 update, this issue was becoming quite prevalent as my world and a friend's world encountered it. This change makes it so even if it fails, the user will get a console log to see what went wrong.

Lazrius and others added 3 commits February 2, 2022 11:18
On some builds the dice roll will fail due to the messageData object not having the update method. This will cause the dice roll to fail without any information being passed back to the end user. I found on the latest V9 update, this issue was becoming quite prevalent as my world and a friendly world encountered it. This change makes it so even if it fails, the user will get a console log to see what went wrong.
@Varriount
Copy link
Contributor

@Lazrius I modified your changes to tackle the problem in a different way, as just logging an error to the console isn't necessarily equivalent to raising an error. Can you test out the changes?

@Lazrius
Copy link
Contributor Author

Lazrius commented Feb 7, 2022

I have tested and the error did not occur on both installs that I tested, so that looks good.

@Varriount Varriount merged commit 33466a5 into League-of-Foundry-Developers:master Feb 7, 2022
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.

2 participants