File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -269,9 +269,9 @@ If an extractor fails it will return a response with the error and your
269269handler will not be called. To customize the error response you have two
270270options:
271271
272- 1 . Use ` Result<T, T::Rejection> ` as your extractor like shown in [ "Optional
273- extractors" ] ( #optional-extractors ) . This works well if you're only using
274- the extractor in a single handler.
272+ 1 . Use ` Result<T, T::Rejection> ` as your extractor like shown in
273+ [ "Handling extractor rejections" ] ( #handling-extractor-rejections ) .
274+ This works well if you're only using the extractor in a single handler.
2752752 . Create your own extractor that in its [ ` FromRequest ` ] implementation calls
276276 one of axum's built in extractors but returns a different response for
277277 rejections. See the [ customize-extractor-error] example for more details.
You can’t perform that action at this time.
0 commit comments