From d89e5db0f677af2c0edcae7dbfa55ad6cf351a9a Mon Sep 17 00:00:00 2001 From: ChenRussell <792608290@qq.com> Date: Mon, 16 Mar 2026 18:23:44 +0800 Subject: [PATCH] git commit -m "fix: clarify MinIO endpoint format error message Add specific error handling for 'Endpoint url cannot have fully qualified paths' to guide users to remove http:// or https:// prefix from endpoint URL." --- internal/handler/system.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/handler/system.go b/internal/handler/system.go index fdd0f666..affc8f60 100644 --- a/internal/handler/system.go +++ b/internal/handler/system.go @@ -613,6 +613,8 @@ var cosFieldPattern = regexp.MustCompile(`^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$`) func sanitizeStorageCheckError(err error) string { msg := err.Error() switch { + case strings.Contains(msg, "Endpoint url cannot have fully qualified paths"): + return "Endpoint 地址格式错误:请去除 http:// 或 https:// 前缀,只填写域名或 IP 地址和端口(例如:minio.example.com:9000)" case strings.Contains(msg, "no such host"): return "DNS 解析失败,请检查地址是否正确" case strings.Contains(msg, "connection refused"):