From 52b491e3ece57cf31428780873ddc69a93fe9fd0 Mon Sep 17 00:00:00 2001 From: Will Lahti Date: Tue, 20 Feb 2018 12:08:20 -0500 Subject: [PATCH] [FAB-8309] Add CLI output to clarify channel update This CR adds log output to the `peer channel update` command to clarify that the update has been submitted for processing but has not yet been validated/invalidated. Change-Id: I3d5a6694621d9f542a4f68e8df3012a82c4f2ebb Signed-off-by: Will Lahti --- peer/channel/update.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/peer/channel/update.go b/peer/channel/update.go index 115063944ea..ca6208fe913 100644 --- a/peer/channel/update.go +++ b/peer/channel/update.go @@ -86,5 +86,11 @@ func update(cmd *cobra.Command, args []string, cf *ChannelCmdFactory) error { } defer broadcastClient.Close() - return broadcastClient.Send(sCtxEnv) + err = broadcastClient.Send(sCtxEnv) + if err != nil { + return err + } + + logger.Info("Successfully submitted channel update") + return nil }