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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

intls
Copy link

@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
Author

intls commented Jan 7, 2025

@intls Really thanks for your fixes!

@iajoiner Thanks for SpaceAndTime!

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