mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
Fix out of date links to error-handling example (#2467)
This commit is contained in:
parent
5d388c8d91
commit
046e7299e1
2 changed files with 4 additions and 4 deletions
|
@ -43,10 +43,10 @@ that can ultimately be converted to `Response`. This allows using `?` operator
|
|||
in handlers. See those examples:
|
||||
|
||||
* [`anyhow-error-response`][anyhow] for generic boxed errors
|
||||
* [`error-handling-and-dependency-injection`][ehdi] for application-specific detailed errors
|
||||
* [`error-handling`][error-handling] for application-specific detailed errors
|
||||
|
||||
[anyhow]: https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
|
||||
[ehdi]: https://github.com/tokio-rs/axum/blob/main/examples/error-handling-and-dependency-injection/src/main.rs
|
||||
[error-handling]: https://github.com/tokio-rs/axum/blob/main/examples/error-handling/src/main.rs
|
||||
|
||||
This also applies to extractors. If an extractor doesn't match the request the
|
||||
request will be rejected and a response will be returned without calling your
|
||||
|
|
|
@ -37,10 +37,10 @@
|
|||
//! in handlers. See those examples:
|
||||
//!
|
||||
//! * [`anyhow-error-response`][anyhow] for generic boxed errors
|
||||
//! * [`error-handling-and-dependency-injection`][ehdi] for application-specific detailed errors
|
||||
//! * [`error-handling`][error-handling] for application-specific detailed errors
|
||||
//!
|
||||
//! [anyhow]: https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
|
||||
//! [ehdi]: https://github.com/tokio-rs/axum/blob/main/examples/error-handling-and-dependency-injection/src/main.rs
|
||||
//! [error-handling]: https://github.com/tokio-rs/axum/blob/main/examples/error-handling/src/main.rs
|
||||
//!
|
||||
#![doc = include_str!("../docs/debugging_handler_type_errors.md")]
|
||||
|
||||
|
|
Loading…
Reference in a new issue