-
I'm using Option to have and optional request body
however, when an invalid request is received, actix-web ignore the error, only printing it in DEBUG
How do I make actix-web return an error in this case? |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Jan 6, 2025
Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robjtede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
actix_web::Result<T>
(orResult<T, E>
) instead ofOption<T>
as the extractor.