Skip to content

Commit

Permalink
[FAB-3018]return detailed event hub connection error
Browse files Browse the repository at this point in the history
suggest we return more detailed connection error message when
connecting with event hub

Change-Id: I0d7c4043f259bf9a8fc300ea755e09647e217285
Signed-off-by: Frank Han <hanhzf@126.com>
  • Loading branch information
seprain committed Apr 6, 2017
1 parent 55bdb74 commit d15cb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabric-client/events/consumer/consumer.go
Expand Up @@ -240,7 +240,7 @@ func (ec *eventsClient) Start() error {
serverClient := ehpb.NewEventsClient(conn)
ec.stream, err = serverClient.Chat(context.Background())
if err != nil {
return fmt.Errorf("Could not create client conn to %s", ec.peerAddress)
return fmt.Errorf("Could not create client conn to %s (%v)", ec.peerAddress, err)
}

if err = ec.register(ies); err != nil {
Expand Down

0 comments on commit d15cb07

Please sign in to comment.