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

Add a recovering decode hook #305

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

Conversation

vincentbernat
Copy link

Hooks are difficult to get 100% correct. When there is an error in the code using reflection, we are likely to trigger a panic. While a panic is helpful to the developer, an end-user has no clue where the problem is and they don't know what part of the configuration would need to be tweaked to work around the issue.

The proposed recovering decode hook will turn the panic into an error, which is a more user-friendly way to report the error to an end user.

Hooks are difficult to get 100% correct. When there is an error in the
code using reflection, we are likely to trigger a panic. While a panic
is helpful to the developer, an end-user has no clue where the problem
is and they don't know what part of the configuration would need to be
tweaked to work around the issue.

The proposed recovering decode hook will turn the panic into an error,
which is a more user-friendly way to report the error to an end user.
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.

None yet

1 participant