Skip to content

Async function error handling #493

Answered by davidpdrsn
kellytk asked this question in Q&A
Nov 10, 2021 · 1 comments · 13 replies
Discussion options

You must be logged in to vote

You have to handle the error somehow and return an appropriate response to the client. You can return Result<T, E> if both types implement IntoResponse.

Note this still isn't an "error" in the tower::Service sense since a response is still generated and sent back to the client.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@davidpdrsn
Comment options

@kellytk
Comment options

@davidpdrsn
Comment options

@kellytk
Comment options

@davidpdrsn
Comment options

Answer selected by davidpdrsn
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