Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant