From 43a4ba6f35ef9af73ed0ee95c10ecea0fa677ca9 Mon Sep 17 00:00:00 2001 From: kiranrg Date: Thu, 29 Jun 2017 16:50:49 -0700 Subject: [PATCH] exit on error from ReadDestination --- tools/common/lib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/common/lib.go b/tools/common/lib.go index 4ef7cc1e..46e4c9d0 100644 --- a/tools/common/lib.go +++ b/tools/common/lib.go @@ -535,6 +535,7 @@ func UpdateConsumerGroup(c *cli.Context, cClient ccli.Client, mClient mcli.Clien respDest, err := mClient.ReadDestination(&shared.ReadDestinationRequest{ DestinationUUID: respCG.DestinationUUID, }) + ExitIfError(err) path, name = respDest.GetPath(), respCG.GetConsumerGroupName()