Skip to content

Conversation

@marcusramberg
Copy link
Contributor

Allows structured error handling in the consumer

Copy link
Owner

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

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

Hey hey - thanks for for the PR. I'm not sure this is the right approach (using wrapping). If this is desired, I think we want to create real concrete error types (with custom messages) instead.

@marcusramberg
Copy link
Contributor Author

My main use case is just that I want to tell the user in a more friendly way they need to enable permissions for idtoken if one of those env vars are missing. I think that would be easy to accomplish with my approach. But I can look into an updated proposal as well using concrete errors.

Allows structured error handling in the consumer
@sethvargo sethvargo merged commit c21eb19 into sethvargo:main Dec 11, 2025
3 checks passed
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.

2 participants