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: Inspect string in error message for number parsing #11883

Conversation

straight-shoota
Copy link
Member

Error messages with undelimited strings are hard to read, especially when the error reason is related to leading and trailing whitespace (e.g. Invalid Int16: 20 ).

This patch makes sure that error messages for number parsing inspect the string input, which wraps it in quotes: Invalid Int16: " 20 "

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric labels Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants