Skip to content

Commit 005b4c9

Browse files
author
Jason Yellick
committed
[FAB-5628] Make peer CLI broadcast errors useful
This is a simple one line fix to expose the info message returned along with the status code when the peer CLI makes broadcast calls (such as for creating or updating channels). Change-Id: I22c458b76259201615a8581ecea8a63f00cad201 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent 21a1f80 commit 005b4c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peer/common/ordererclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (s *broadcastClient) getAck() error {
8282
return err
8383
}
8484
if msg.Status != cb.Status_SUCCESS {
85-
return fmt.Errorf("Got unexpected status: %v", msg.Status)
85+
return fmt.Errorf("Got unexpected status: %v -- %s", msg.Status, msg.Info)
8686
}
8787
return nil
8888
}

0 commit comments

Comments
 (0)