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

Middleware errors are hard to use #16

Open
ctian1 opened this issue Mar 7, 2024 · 1 comment
Open

Middleware errors are hard to use #16

ctian1 opened this issue Mar 7, 2024 · 1 comment

Comments

@ctian1
Copy link

ctian1 commented Mar 7, 2024

Right now middleware handle function is expected to return twirp::ClientError which makes it hard to return any special middleware errors. Maybe there can be another option in the enum such as ClientError::Middleware(String)?

@tclem
Copy link
Member

tclem commented Mar 11, 2024

That's true. Do you have a motivating example or use case?

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

No branches or pull requests

2 participants