Skip to content

Problem with error handler when using fallible tower middleware #1908

Answered by davidpdrsn
lcmgh asked this question in Q&A
Discussion options

You must be logged in to vote

Doesn't look like your middleware has any errors of its own. It always just propagates the error from the wrapped service. In that case you should use type Error = T::Error;. Returning a response is not an error.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@lcmgh
Comment options

@lcmgh
Comment options

@davidpdrsn
Comment options

@lcmgh
Comment options

@lcmgh
Comment options

Answer selected by lcmgh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants