mirror of
https://github.com/actix/actix-web.git
synced 2024-11-20 00:21:07 +00:00
improve "data no configured" message (#2429)
This commit is contained in:
parent
be9530eb72
commit
ec6d284a8e
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ impl<T: ?Sized + 'static> FromRequest for Data<T> {
|
|||
type_name::<T>(),
|
||||
);
|
||||
err(ErrorInternalServerError(
|
||||
"App data is not configured, to configure use App::data()",
|
||||
"App data is not configured, to configure construct it with web::Data::new() and pass it to App::app_data()",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue