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

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

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
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.

1 participant