diff --git a/cmd/common-main.go b/cmd/common-main.go index c0b04a7b7..079b98649 100644 --- a/cmd/common-main.go +++ b/cmd/common-main.go @@ -419,14 +419,14 @@ func handleCommonEnvVars() { if redirectURL := env.Get(config.EnvMinIOBrowserRedirectURL, ""); redirectURL != "" { u, err := xnet.ParseHTTPURL(redirectURL) if err != nil { - logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT value in environment variable") + logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable") } // Look for if URL has invalid values and return error. if !((u.Scheme == "http" || u.Scheme == "https") && (u.Path == "/" || u.Path == "") && u.Opaque == "" && !u.ForceQuery && u.RawQuery == "" && u.Fragment == "") { err := fmt.Errorf("URL contains unexpected resources, expected URL to be of http(s)://minio.example.com format: %v", u) - logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT value is environment variable") + logger.Fatal(err, "Invalid MINIO_BROWSER_REDIRECT_URL value is environment variable") } u.Path = "" // remove any path component such as `/` globalBrowserRedirectURL = u