Skip to content

Commit

Permalink
Returns a more intuitive Connect error if the underlying request is u…
Browse files Browse the repository at this point in the history
…nable to be sent (#211)

Co-authored-by: Steve Ayers <sayers@uber.com>
  • Loading branch information
smaye81 and Steve Ayers authored May 18, 2022
1 parent 316a3a0 commit eaacdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol_grpc_client_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (cs *duplexClientStream) makeRequest(prepared chan struct{}) {
// establish the receive side of the stream.
response, err := cs.httpClient.Do(request)
if err != nil {
cs.setResponseError(err)
cs.setResponseError(NewError(CodeUnavailable, err))
return
}

Expand Down

0 comments on commit eaacdf5

Please sign in to comment.