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

config.types.ChoiceAttribute: log the invalid value if validation fails #2624

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

dgw
Copy link
Member

@dgw dgw commented Sep 25, 2024

Description

This should make debugging a bad configuration easier, especially if the value is read from an environment variable.

It should also help with figuring out weird errors related to invisible characters in the configuration file, but that's not the primary motivation here.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make lint and make test)
  • I have tested the functionality of the things this change touches

This should make debugging a bad configuration easier, especially if the
value is read from an environment variable. It should also help with
figuring out weird errors related to invisible characters in the
configuration file, but that's not the primary motivation here.
@dgw dgw added the Tweak label Sep 25, 2024
@dgw dgw added this to the 8.1.0 milestone Sep 25, 2024
@dgw dgw requested a review from a team September 25, 2024 23:16
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

Could go in Sopel 8.0.1.

@dgw
Copy link
Member Author

dgw commented Oct 13, 2024

Could go in Sopel 8.0.1.

It could. Easy cherry-pick, so why not.

@dgw dgw modified the milestones: 8.1.0, 8.0.1 Oct 13, 2024
@dgw dgw merged commit f3d3704 into master Oct 13, 2024
15 checks passed
@dgw dgw deleted the ChoiceAttribute-log-invalid-value branch October 13, 2024 16:19
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