fix bug: component check

This commit is contained in:
skiffer-git 2024-03-09 00:03:42 +08:00
parent 06a944d2e1
commit 48c1c67132

View File

@ -102,7 +102,7 @@ func main() {
err = check.function(check.config)
if err != nil {
allSuccess = false
component.ErrorPrint(fmt.Sprintf("Check component: %s, failed: %v", check.name, errs.Unwrap(err).Error()))
fmt.Fprintf(os.Stderr, "Check component: %s, failed: %+v", check.name, err)
if check.name == "Minio" {
if errors.Is(err, errMinioNotEnabled) ||
errors.Is(err, errSignEndPoint) ||