From 9ed051df472f4bdfb431b70da32fb30ec7bb0140 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Sat, 9 Mar 2024 00:21:51 +0800 Subject: [PATCH] fix bug: component check --- tools/component/component.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/component/component.go b/tools/component/component.go index c7f48bbfc..951de082c 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -163,13 +163,13 @@ func checkRedis(config *config.GlobalConfig) error { // checkMinio checks the MinIO connection func checkMinio(config *config.GlobalConfig) error { if strings.Contains(config.Object.ApiURL, "127.0.0.1") { - return errApiURL + return errs.Wrap(errApiURL) } if config.Object.Enable != "minio" { - return errMinioNotEnabled + return errs.Wrap(errMinioNotEnabled) } if strings.Contains(config.Object.Minio.Endpoint, "127.0.0.1") { - return errSignEndPoint + return errs.Wrap(errSignEndPoint) } minio := &component.Minio{