Replies: 1 comment
-
Usually, HandleErrorLayer is for something different. When I work with errors that need to be templated, I do something a little weird. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi,
I'd like to template errors. Transforming the errors in
IntoResponse
works perfectly, but I'd like to have some state (URL, etc) in the response and would like to use async libraries.The gist of the app ATM is.
I tried to use
HandleError
andHandleErrorLayer
, but could not get it to compose with the usual routing in axum.Can someone give a a hint?
axum version
0.7.4
Beta Was this translation helpful? Give feedback.
All reactions