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

Fix raw error crashing HTML reporter, add types, and share error helper #4999

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

Hoolean
Copy link
Contributor

@Hoolean Hoolean commented Feb 26, 2025

Description

There was one call site where we were accidentally passing a raw Exception as a message instead of a serialised summary, which was crashing the HTML reporter.

This commit corrects this by serialising at that site, adds more types to Message to automatically warn for this category of issue in the future, and pulls the stack trace formatting code out into a public function to provide more error details in more places.

Checklist

  • update CHANGELOG.md
  • wait for the tests to pass
  • request a review

There was one call site where we were accidentally passing a raw
Exception as a message instead of a serialised summary, which was
crashing the HTML reporter.

This commit corrects this by serialising at that site, adds more types
to Message to automatically warn for this category of issue in the
future, and pulls the stack trace formatting code out into a public
function to provide more error details in more places.
@felipesanches felipesanches merged commit eab6d90 into fonttools:main Feb 27, 2025
49 checks passed
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