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

Improve exception displaying #69

Merged
merged 1 commit into from
May 7, 2021
Merged

Conversation

sfPlayer1
Copy link
Contributor

This improves the issue in #67 somewhat by including the exception type and using the standard exception formatting. The exception message still uses the same localization, not that it seems to apply often.

A later change should look into more user friendly errors for common issues, reserving the plain exception+trace display for the unexpected.

}

for (Throwable ec : e.getSuppressed()) {
appendException(errorMessage, prefix + prefixAppend, Utils.BUNDLE.getString("prompt.exception.suppressed"), ec);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these translation messages be removed in case these are their only usages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably, the Java printStackTrace doesn't bother with localizing them and it's somewhat counterproductive considering the stack trace being for devs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I'll leave the lang string cleanup for later.

@sfPlayer1 sfPlayer1 merged commit bf2e664 into FabricMC:master May 7, 2021
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.

3 participants