From e8cbfa7af219ef5de6e4863cbbb9e09fa706a1d2 Mon Sep 17 00:00:00 2001 From: Lazzaretti Date: Wed, 14 Jul 2021 21:38:25 +0200 Subject: [PATCH] fix: rename error message for MINIO_BROWSER_REDIRECT_URL (#12700) rename the error message for MINIO_BROWSER_REDIRECT_URL to match the field name --- cmd/common-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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