From 634e3d81d2660c17d5fc6763c8deec091960d0a3 Mon Sep 17 00:00:00 2001 From: Carlos Quintana Date: Mon, 19 Oct 2020 16:14:46 +0200 Subject: [PATCH] Print unconfigured AppData type --- src/data.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/data.rs b/src/data.rs index 6405fd901..01d36569b 100644 --- a/src/data.rs +++ b/src/data.rs @@ -1,3 +1,4 @@ +use std::any::type_name; use std::ops::Deref; use std::sync::Arc; @@ -121,8 +122,9 @@ impl FromRequest for Data { } else { log::debug!( "Failed to construct App-level Data extractor. \ - Request path: {:?}", - req.path() + Request path: {:?} (type: {})", + req.path(), + type_name::(), ); err(ErrorInternalServerError( "App data is not configured, to configure use App::data()",