-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Improve match() error messages #7312
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
Conversation
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.
Side note: I already did this in the original PR but removed it after Mate and Nikita noted that it was inconsistent with the current error messages. It also included some string sanitization (at least truncating, maybe more, I don't remember) but there are quite a few edge cases one can run into here.
Now truncates a string at 10 chars, adds an ellipsis, and shows it in quotes. Thanks to Sara and Joe for their help in dealing with C strings... |
I used 32, some class names are long ... |
Fixes bug #81303 Error message for match() is misleading and unhelpful