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: Better error message for Time.parse! when end of input is reached #12124

Merged

Conversation

asterite
Copy link
Member

Fixes #12047

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:time labels Jun 14, 2022
src/time/format/parser.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota changed the title Time.parse!: better error message when end of input is reached Fix: Better error message for Time.parse! when end of input is reached Jun 14, 2022
@straight-shoota straight-shoota added this to the 1.5.0 milestone Jun 14, 2022
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@straight-shoota straight-shoota merged commit dc9bf13 into master Jun 17, 2022
@straight-shoota straight-shoota deleted the feature/time-parse-better-error-message-on-input-end branch June 17, 2022 10:26
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:time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time::Parser should have a more meaningful error message when input string is too short
3 participants