mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 16:55:08 +02:00
fmt
This commit is contained in:
@ -96,8 +96,11 @@ impl<T: 'static, P> FromRequest<P> for Data<T> {
|
||||
if let Some(st) = req.app_config().extensions().get::<Data<T>>() {
|
||||
Ok(st.clone())
|
||||
} else {
|
||||
log::debug!("Failed to construct App-level Data extractor. \
|
||||
Request path: {:?}", req.path());
|
||||
log::debug!(
|
||||
"Failed to construct App-level Data extractor. \
|
||||
Request path: {:?}",
|
||||
req.path()
|
||||
);
|
||||
Err(ErrorInternalServerError(
|
||||
"App data is not configured, to configure use App::data()",
|
||||
))
|
||||
|
Reference in New Issue
Block a user