-
Notifications
You must be signed in to change notification settings - Fork 784
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
Bizhawk Client: Display Err #4532
base: main
Are you sure you want to change the base?
Bizhawk Client: Display Err #4532
Conversation
worlds/_bizhawk/context.py
Outdated
except Exception as exc: | ||
logger.exception(exc) | ||
return {} | ||
except Exception as e: | ||
Utils.messagebox('Error', str(e), True) | ||
raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even with a message box, I think it's still important for the exception with the full stack trace to go in the text file log.
I don't know whether this raise
does that.
Did you make sure the full stack trace still goes in the text file log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can check that later tonight
Co-authored-by: Bryce Wilson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with a fake exception, works as expected.
What is this fixing or adding?
Causes the Bizhawk client to display an error popup when an Exception is raised, similarly to SNIClient
How was this tested?
I have an in-development APWorld using Bizhawk Client that raises an exception if a version check patched into the rom does not match world's version when the user applies the patch. The error message appeared as expected. I also tested to make sure that the error was still logged correctly, and that a game could still connect and be played.
If this makes graphical changes, please attach screenshots.