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

feat(parsing): give serviceable parsing error details to users #135

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

AlexTMjugador
Copy link
Contributor

PR #134 was, in my opinion, a missed opportunity to improve the diagnostics offered by cron::error::Error to users, which at the moment always displays as an unhelpful "Invalid expression: Invalid cron expression." string. Let's improve on that by displaying the underlying parse error instead, which is serviceable enough to know what the input was and what exactly went wrong parsing it.

PR #134 was, in my opinion, a missed opportunity to improve the
diagnostics offered by `cron::error::Error` to users, which at the
moment always displays as an unhelpful "Invalid expression: Invalid cron
expression." string. Let's improve on that by displaying the underlying
parse error instead, which is serviceable enough to know what the input
was and what exactly went wrong parsing it.
Copy link
Owner

@zslayton zslayton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@zslayton zslayton merged commit ba64b92 into zslayton:master Jan 14, 2025
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