-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 ImageFont error messages #8338
Merged
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
cdadf93
Improve error messages
yngvem 95194a2
Use tempfile.NamedTemporaryFile
radarhere e0a75b6
Renamed variable for first part of splitext to root
radarhere fcca8a3
Fix accidental indent
yngvem dbe78a0
Merge branch 'improve-error-messages' into improve-error-messages
radarhere 3bb180a
Merge pull request #1 from radarhere/improve-error-messages
yngvem ef51e7a
Fix wrong indentation for assert
yngvem 822f525
Merge branch 'main' into improve-error-messages
yngvem e14072e
Added further detail
radarhere dbe979d
Sort extensions alphabetically in error message
radarhere 547832f
Use tempfile.NamedTemporaryFile
radarhere 7d223fb
Merge pull request #2 from radarhere/improve-error-messages
yngvem d2efd7d
Update src/PIL/ImageFont.py
yngvem e4f1302
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7750315
Update src/PIL/ImageFont.py
yngvem 32c514d
Update src/PIL/ImageFont.py
yngvem 9ba4e10
Merge branch 'main' into improve-error-messages
yngvem 9adb476
Rearranged text
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Was this also a source of confusion for you? I'm not sure why this wouldn't be suitably obvious.
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.
No this happened more on auto-pilot while coding in the evening -- I pretty much always try to include the incorrect value in error messages if it fails on input-validation as I find it makes debugging quite a lot easier for me (especially if the error is several frames down the stack from where I'm working).
Feel free to remove it, no hard feelings there :)