From 408e5f7bddd2f0e6b50cfb6e84818cacb395a39f Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Wed, 17 Oct 2018 21:16:52 +0530 Subject: [PATCH] make error message more appropriate --- prog/weave-npc/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/weave-npc/main.go b/prog/weave-npc/main.go index 44c65a37..12b5078f 100644 --- a/prog/weave-npc/main.go +++ b/prog/weave-npc/main.go @@ -189,7 +189,7 @@ func createBaseRules(ipt *iptables.IPTables, ips ipset.Interface) error { // delete `weave-local-pods` ipset which is no longer used by weave-npc weaveLocalPodExist, err := ipsetExist(ips, npc.LocalIpset) if err != nil { - common.Log.Errorf("Failed to destroy ipset '%s'", npc.LocalIpset) + common.Log.Errorf("Failed to look if ipset '%s' exists", npc.LocalIpset) } else if weaveLocalPodExist { common.Log.Debugf("Destroying ipset '%s'", npc.LocalIpset) if err := ips.Destroy(npc.LocalIpset); err != nil {