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

chore: add the string that failed validation to IdentError::InvalidChars error variant #1555

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

Conversation

greenhat
Copy link
Contributor

Describe your changes

Add the string that failed validation to IdentError::InvalidChars error variant to see the failed string in the error message.

Checklist before requesting a review

  • Repo forked and branch created from next according to naming convention.
  • Commit messages and codestyle follow conventions.
  • Relevant issues are linked in the PR description.
  • Tests added for new functionality.
  • Documentation/comments updated according to changes.

@greenhat greenhat added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Oct 30, 2024
@greenhat greenhat marked this pull request as ready for review October 30, 2024 10:22
Copy link
Contributor

@plafer plafer left a comment

Choose a reason for hiding this comment

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

LGTM, except for a minor change

Comment on lines +320 to +321
// Err(IdentError::InvalidChars { ident: s.into() })
panic!("IdentError::InvalidChars")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you forgot to uncomment the Err here right? i.e. we shouldn't be panicking, and returning an error instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This PR does not require an entry in the `CHANGELOG.md` file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants