1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00
This commit is contained in:
Nikolay Kim
2019-04-10 15:05:03 -07:00
parent 6b42b2aaee
commit 52aebb3bca
4 changed files with 16 additions and 6 deletions

View File

@ -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()",
))