From 3fefebd05d1e982624bd36bf3c986d23c819e98c Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 25 Jan 2017 22:50:45 +0100 Subject: [PATCH] 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. --- cmd/admin-heal.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/admin-heal.go b/cmd/admin-heal.go index 4a7bc983..8b2f8db0 100644 --- a/cmd/admin-heal.go +++ b/cmd/admin-heal.go @@ -160,7 +160,10 @@ func mainAdminHeal(ctx *cli.Context) error { case madmin.CanHeal: // Heal Object 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 printMsg(healObjectMessage{Bucket: bucket, Object: obj})