mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-07 00:00:15 +02:00
Improve error for missing extension (#795)
This commit is contained in:
@@ -56,7 +56,7 @@ where
|
||||
.get::<T>()
|
||||
.ok_or_else(|| {
|
||||
MissingExtension::from_err(format!(
|
||||
"Extension of type `{}` was not found. Perhaps you forgot to add it?",
|
||||
"Extension of type `{}` was not found. Perhaps you forgot to add it? See `axum::AddExtensionLayer`.",
|
||||
std::any::type_name::<T>()
|
||||
))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user