mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +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:
committed by
Harshavardhana
parent
9d7529118e
commit
3fefebd05d
@@ -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})
|
||||||
|
|||||||
Reference in New Issue
Block a user