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:
parent
be9530eb72
commit
ec6d284a8e
@ -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()",
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user