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: clarify error message for UnsupportedPrecision #453

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

intls
Copy link
Contributor

@intls intls commented Jan 5, 2025

Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr.

Please go through the following checklist

Rationale for this change

If do not replace the description for UnsupportedPrecision, both ParsingError and UnsupportedPrecision will display the same error message.

What changes are included in this PR?

Updated the #[snafu(display(...))] attribute for the UnsupportedPrecision variant to provide a more specific error message.

The same error message will be used for different types of errors, making it difficult to understand the specific cause of the failure. When analyzing errors, it will be difficult to determine which specific error occurred — a general parsing issue or specifically an unsupported precision.

Are these changes tested?

N/A since it is message-only

Copy link
Contributor

@iajoiner iajoiner left a comment

Choose a reason for hiding this comment

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

@intls Really thanks for your fixes!

@iajoiner iajoiner requested a review from JayWhite2357 January 6, 2025 14:40
@intls
Copy link
Contributor Author

intls commented Jan 7, 2025

@intls Really thanks for your fixes!

@iajoiner Thanks for SpaceAndTime!

@iajoiner iajoiner enabled auto-merge January 8, 2025 05:05
@iajoiner iajoiner merged commit f49336e into spaceandtimelabs:main Jan 8, 2025
11 checks passed
Copy link

github-actions bot commented Jan 8, 2025

🎉 This PR is included in version 0.64.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants