Replies: 1 comment
-
You can use tokio's |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm using a
Result<Response, AppError>
in order to make error paths quickly display an HTML error, like so:Trouble is, my AppState that I pass into handlers holds a shared reference to both my template engine and the request's cookie jar (so I can identify the user). I'd like to render a pretty error page using these resources - any well documented patterns for this? Basically I want an AppError that can get the same extracts as handler functions, or some other (simple?) pattern.
axum version
0.7.4
Beta Was this translation helpful? Give feedback.
All reactions