1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-02-22 12:13:16 +01: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>(), type_name::<T>(),
); );
err(ErrorInternalServerError( 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()",
)) ))
} }
} }