1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00

heal: Don't print info if heal obj returns an err (#1988)

When heal object returns an error, just print an error and continue with the
next objects.
This commit is contained in:
Anis Elleuch
2017-01-25 22:50:45 +01:00
committed by Harshavardhana
parent 9d7529118e
commit 3fefebd05d

View File

@@ -160,7 +160,10 @@ func mainAdminHeal(ctx *cli.Context) error {
case madmin.CanHeal: case madmin.CanHeal:
// Heal Object // Heal Object
e = client.HealObject(bucket, obj.Key, isFake) e = client.HealObject(bucket, obj.Key, isFake)
errorIf(probe.NewError(e), "Cannot repair object: `"+obj.Key+"`") if e != nil {
errorIf(probe.NewError(e), "Cannot repair object: `"+obj.Key+"`")
continue
}
// Print successful message // Print successful message
printMsg(healObjectMessage{Bucket: bucket, Object: obj}) printMsg(healObjectMessage{Bucket: bucket, Object: obj})