1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-11 17:59:35 +00:00

improve "data no configured" message (#2429)

This commit is contained in:
Ali MJ Al-Nasrawy 2021-10-31 16:19:21 +03:00 committed by GitHub
parent be9530eb72
commit ec6d284a8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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