Skip to content

Commit

Permalink
Merge "[FAB-3015]return detailed event hub connection error"
Browse files Browse the repository at this point in the history
  • Loading branch information
yacovm authored and Gerrit Code Review committed Apr 13, 2017
2 parents 1ea3659 + 60e3b67 commit 18ec851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (ec *EventsClient) processEvents() error {
func (ec *EventsClient) Start() error {
conn, err := newEventsClientConnectionWithAddress(ec.peerAddress)
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:%s", ec.peerAddress, err)
}

ies, err := ec.adapter.GetInterestedEvents()
Expand All @@ -211,7 +211,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:%s", ec.peerAddress, err)
}

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

0 comments on commit 18ec851

Please sign in to comment.