Skip to content

How to handle panic in axum? I didn't find anything about this in the examples. #1865

Answered by syphar
rfvygv asked this question in Q&A
Discussion options

You must be logged in to vote

There is CatchPanicLayer from tower-http, which also includes an example of how to return a custom response.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rfvygv
Comment options

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