put bucket website: improve error message for redirectallrequests

This commit is contained in:
Alex 2025-01-04 19:16:24 +01:00
parent 44ce6ae5b4
commit 9b7fea4cb0

View file

@ -229,7 +229,7 @@ impl WebsiteConfiguration {
pub fn into_garage_website_config(self) -> Result<WebsiteConfig, Error> {
if self.redirect_all_requests_to.is_some() {
Err(Error::NotImplemented(
"S3 website redirects are not currently implemented in Garage.".into(),
"RedirectAllRequestsTo is not currently implemented in Garage, however its effect can be emulated using a single inconditional RoutingRule.".into(),
))
} else {
Ok(WebsiteConfig {