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

Cleaned up Throwable try catches #3280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RecursivePineapple
Copy link
Contributor

This removes a large number of Throwable try/catches. Several important try/catches were given a better error message.
This was tested in the latest nightly and it worked fine. I placed a few machines to make sure nothing important was broken, although many of the try/catches had no explanation. If they prevented a crash due to a bug, I have no way of verifying that the bug is still present.

@RecursivePineapple RecursivePineapple added the refactor For PRs rewritting a part of the code to have a nicer code overall. label Sep 25, 2024
@RecursivePineapple RecursivePineapple requested a review from a team September 25, 2024 17:55
@boubou19 boubou19 added the ongoing freeze - do not merge PR tagged with this do not meet the requirement to be merged during a freeze. label Sep 25, 2024
@@ -600,7 +600,7 @@ public void onLoadComplete(FMLLoadCompleteEvent aEvent) {
try {
tRunnable.run();
Copy link
Member

Choose a reason for hiding this comment

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

Can we please ditch some more of these random Throwable catches, especially the ones around the pre, post etc. Runnables.

I had a bitch of a time the other day trying to figure out why my code was seemingly doing nothing, only to realise that GT5U was silently catching otherwise useful exceptions. These runnables are used in many different places and this makes debugging them much more annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ongoing freeze - do not merge PR tagged with this do not meet the requirement to be merged during a freeze. refactor For PRs rewritting a part of the code to have a nicer code overall.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants