Skip to content

How can I print stack trace that collected by anyhow or thiserror? #713

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

You must be logged in to vote

You have to make a newtype wrapper for anyhow::Error and implement IntoResponse for it an print the stack trace in that implementation.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
5 replies
@tomocrafter
Comment options

@davidpdrsn
Comment options

@jetaggart
Comment options

@freopen
Comment options

@jplatte
Comment options

Answer selected by davidpdrsn
Comment options

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

@davidpdrsn
Comment options

@kbarros
Comment options

@davidpdrsn
Comment options

@kbarros
Comment options

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